mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Remove checks for null out value in encryption paths
These paths are never exercised, as the parameters given are always different cipher and plaintext `crypto_data_t` pointers. Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Attila Fueloep <attila@fueloep.org> Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Closes #9661 Closes #10015
This commit is contained in:
@@ -30,9 +30,6 @@
|
||||
#include <sys/crypto/spi.h>
|
||||
#include <sys/crypto/sched_impl.h>
|
||||
|
||||
#define CRYPTO_OPS_OFFSET(f) offsetof(crypto_ops_t, co_##f)
|
||||
#define CRYPTO_CIPHER_OFFSET(f) offsetof(crypto_cipher_ops_t, f)
|
||||
|
||||
/*
|
||||
* Encryption and decryption routines.
|
||||
*/
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
#include <sys/crypto/spi.h>
|
||||
#include <sys/crypto/sched_impl.h>
|
||||
|
||||
#define CRYPTO_OPS_OFFSET(f) offsetof(crypto_ops_t, co_##f)
|
||||
#define CRYPTO_DIGEST_OFFSET(f) offsetof(crypto_digest_ops_t, f)
|
||||
|
||||
/*
|
||||
* Message digest routines
|
||||
*/
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
#include <sys/crypto/spi.h>
|
||||
#include <sys/crypto/sched_impl.h>
|
||||
|
||||
#define CRYPTO_OPS_OFFSET(f) offsetof(crypto_ops_t, co_##f)
|
||||
#define CRYPTO_MAC_OFFSET(f) offsetof(crypto_mac_ops_t, f)
|
||||
|
||||
/*
|
||||
* Message authentication codes routines.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user