Fix gratuitous compiler warning.
Reported by: Rong-en Fan <grafan@gmail.com>
This commit is contained in:
parent
e0f73680ab
commit
e9425270e5
@ -523,13 +523,14 @@ padlock_process(void *arg __unused, struct cryptop *crp, int hint __unused)
|
|||||||
u_char *buf, *abuf;
|
u_char *buf, *abuf;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
|
enccrd = maccrd = NULL;
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
if (crp == NULL || crp->crp_callback == NULL || crp->crp_desc == NULL) {
|
if (crp == NULL || crp->crp_callback == NULL || crp->crp_desc == NULL) {
|
||||||
error = EINVAL;
|
error = EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
enccrd = maccrd = NULL;
|
|
||||||
for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
|
for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
|
||||||
switch (crd->crd_alg) {
|
switch (crd->crd_alg) {
|
||||||
case CRYPTO_NULL_HMAC:
|
case CRYPTO_NULL_HMAC:
|
||||||
|
Loading…
Reference in New Issue
Block a user