diff options
| author | deraadt <> | 2014-06-07 14:41:57 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-07 14:41:57 +0000 |
| commit | 6e812251158ecbc0733dba21489ebce1248ebb33 (patch) | |
| tree | c0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libcrypto/engine/hw_cryptodev.c | |
| parent | 369f4c90b9a7f7864572479745455d29b0777219 (diff) | |
| download | openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.gz openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.bz2 openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.zip | |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'src/lib/libcrypto/engine/hw_cryptodev.c')
| -rw-r--r-- | src/lib/libcrypto/engine/hw_cryptodev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c index 7da9913d28..7700adf971 100644 --- a/src/lib/libcrypto/engine/hw_cryptodev.c +++ b/src/lib/libcrypto/engine/hw_cryptodev.c | |||
| @@ -908,7 +908,7 @@ crparam2bn(struct crparam *crp, BIGNUM *a) | |||
| 908 | if (bytes == 0) | 908 | if (bytes == 0) |
| 909 | return (-1); | 909 | return (-1); |
| 910 | 910 | ||
| 911 | if ((pd = (u_int8_t *) malloc(bytes)) == NULL) | 911 | if ((pd = malloc(bytes)) == NULL) |
| 912 | return (-1); | 912 | return (-1); |
| 913 | 913 | ||
| 914 | for (i = 0; i < bytes; i++) | 914 | for (i = 0; i < bytes; i++) |
