mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Simplify code a bit.
This commit is contained in:
parent
b6a4c9acdb
commit
0a95a08ecb
2 changed files with 6 additions and 12 deletions
|
|
@ -770,10 +770,8 @@ ah_input_cb(struct cryptop *crp)
|
|||
if (sav->tdb_cryptoid != 0)
|
||||
sav->tdb_cryptoid = crp->crp_sid;
|
||||
|
||||
if (crp->crp_etype == EAGAIN) {
|
||||
error = crypto_dispatch(crp);
|
||||
return error;
|
||||
}
|
||||
if (crp->crp_etype == EAGAIN)
|
||||
return (crypto_dispatch(crp));
|
||||
|
||||
V_ahstat.ahs_noxform++;
|
||||
DPRINTF(("%s: crypto error %d\n", __func__, crp->crp_etype));
|
||||
|
|
@ -1164,8 +1162,7 @@ ah_output_cb(struct cryptop *crp)
|
|||
|
||||
if (crp->crp_etype == EAGAIN) {
|
||||
IPSECREQUEST_UNLOCK(isr);
|
||||
error = crypto_dispatch(crp);
|
||||
return error;
|
||||
return (crypto_dispatch(crp));
|
||||
}
|
||||
|
||||
V_ahstat.ahs_noxform++;
|
||||
|
|
|
|||
|
|
@ -495,10 +495,8 @@ esp_input_cb(struct cryptop *crp)
|
|||
if (sav->tdb_cryptoid != 0)
|
||||
sav->tdb_cryptoid = crp->crp_sid;
|
||||
|
||||
if (crp->crp_etype == EAGAIN) {
|
||||
error = crypto_dispatch(crp);
|
||||
return error;
|
||||
}
|
||||
if (crp->crp_etype == EAGAIN)
|
||||
return (crypto_dispatch(crp));
|
||||
|
||||
V_espstat.esps_noxform++;
|
||||
DPRINTF(("%s: crypto error %d\n", __func__, crp->crp_etype));
|
||||
|
|
@ -947,8 +945,7 @@ esp_output_cb(struct cryptop *crp)
|
|||
|
||||
if (crp->crp_etype == EAGAIN) {
|
||||
IPSECREQUEST_UNLOCK(isr);
|
||||
error = crypto_dispatch(crp);
|
||||
return error;
|
||||
return (crypto_dispatch(crp));
|
||||
}
|
||||
|
||||
V_espstat.esps_noxform++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue