HomeFreeBSD

Avoid checking pointers that are never NULL.

Description

Avoid checking pointers that are never NULL.

Coverity noted that cod pointer is always non-NULL at the end of
cryptodev_aead(). While here, fix cryptodev_op() to match by making
one earlier failure case before cod and crp are allocated just return
directly.

CID: 1422185
Reported by: Coverity

Details

Provenance
jhbAuthored on
Parents
rS359569: Remove duplicate conditional.
Branches
Unknown
Tags
Unknown