git: 26e837e2d488 - main - geom_bde: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Dec 2021 17:54:13 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=26e837e2d488cc3e484c88a511728e061205edc5
commit 26e837e2d488cc3e484c88a511728e061205edc5
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-09 17:53:48 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-09 17:53:48 +0000
geom_bde: plug set-but-not-used vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/geom/bde/g_bde.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/geom/bde/g_bde.h b/sys/geom/bde/g_bde.h
index 3f36bb4281ae..76741a3e1ec5 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;
+ int error __diagused;
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;
+ int error __diagused;
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;
+ int error __diagused;
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;
+ int error __diagused;
error = rijndael_blockDecrypt(ci, ki, in, len * 8, out);
KASSERT(error > 0, ("rijndael_blockDecrypt %d", error));