aesni(4): Quiesce spurious GCC 6.3.0 -Wmaybe-uninitialized warnings

Always initialize some variables GCC warns about.  They are initialized in
every path where they are used, but GCC doesn't know that.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2018-01-12 06:40:58 +00:00
parent 8f07d847a1
commit 4ce147895c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327866

View File

@ -724,6 +724,8 @@ aesni_cipher_process(struct aesni_session *ses, struct cryptodesc *enccrd,
return (EINVAL);
}
ctx = NULL;
ctxidx = 0;
error = 0;
kt = is_fpu_kern_thread(0);
if (!kt) {
@ -776,6 +778,9 @@ aesni_cipher_crypt(struct aesni_session *ses, struct cryptodesc *enccrd,
KASSERT(ses->algo != CRYPTO_AES_NIST_GCM_16 || authcrd != NULL,
("AES_NIST_GCM_16 must include MAC descriptor"));
ivlen = 0;
authbuf = NULL;
buf = aesni_cipher_alloc(enccrd, crp, &allocated);
if (buf == NULL)
return (ENOMEM);