git: 3279341dc541 - main - aesni: plug a set-but-not-unused var in aesni_newsession

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Wed, 24 Nov 2021 16:25:56 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=3279341dc541cfc730c80b8dd29ae9a6cd106325

commit 3279341dc541cfc730c80b8dd29ae9a6cd106325
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-24 16:17:09 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-24 16:25:50 +0000

    aesni: plug a set-but-not-unused var in aesni_newsession
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/crypto/aesni/aesni.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/crypto/aesni/aesni.c b/sys/crypto/aesni/aesni.c
index de797abd1af5..cd31287b08f0 100644
--- a/sys/crypto/aesni/aesni.c
+++ b/sys/crypto/aesni/aesni.c
@@ -342,12 +342,9 @@ static int
 aesni_newsession(device_t dev, crypto_session_t cses,
     const struct crypto_session_params *csp)
 {
-	struct aesni_softc *sc;
 	struct aesni_session *ses;
 	int error;
 
-	sc = device_get_softc(dev);
-
 	ses = crypto_get_driver_session(cses);
 
 	switch (csp->csp_mode) {