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) {