Remove a redunant check.

This commit is contained in:
John Baldwin 2017-12-30 03:08:49 +00:00
parent 2afb21f309
commit 8bbeea2b1d

View file

@ -607,9 +607,7 @@ swcr_authenc(struct cryptop *crp)
bzero(blk, blksz);
crypto_copydata(crp->crp_flags, buf,
crde->crd_skip + i, len, blk);
if (!(crde->crd_flags & CRD_F_ENCRYPT)) {
exf->decrypt(swe->sw_kschedule, blk);
}
exf->decrypt(swe->sw_kschedule, blk);
crypto_copyback(crp->crp_flags, buf,
crde->crd_skip + i, len, blk);
}