diff --git a/sys/geom/bde/g_bde.h b/sys/geom/bde/g_bde.h index 76741a3e1ec5..3f36bb4281ae 100644 --- a/sys/geom/bde/g_bde.h +++ b/sys/geom/bde/g_bde.h @@ -176,7 +176,7 @@ void g_bde_worker(void *arg); static __inline void AES_init(cipherInstance *ci) { - int error __diagused; + int error; error = rijndael_cipherInit(ci, MODE_CBC, NULL); KASSERT(error > 0, ("rijndael_cipherInit %d", error)); @@ -185,7 +185,7 @@ AES_init(cipherInstance *ci) static __inline void AES_makekey(keyInstance *ki, int dir, u_int len, const void *key) { - int error __diagused; + int error; error = rijndael_makeKey(ki, dir, len, key); KASSERT(error > 0, ("rijndael_makeKey %d", error)); @@ -194,7 +194,7 @@ AES_makekey(keyInstance *ki, int dir, u_int len, const void *key) static __inline void AES_encrypt(cipherInstance *ci, keyInstance *ki, const void *in, void *out, u_int len) { - int error __diagused; + int error; error = rijndael_blockEncrypt(ci, ki, in, len * 8, out); KASSERT(error > 0, ("rijndael_blockEncrypt %d", error)); @@ -203,7 +203,7 @@ AES_encrypt(cipherInstance *ci, keyInstance *ki, const void *in, void *out, u_in static __inline void AES_decrypt(cipherInstance *ci, keyInstance *ki, const void *in, void *out, u_int len) { - int error __diagused; + int error; error = rijndael_blockDecrypt(ci, ki, in, len * 8, out); KASSERT(error > 0, ("rijndael_blockDecrypt %d", error));