HomeFreeBSD

ena: remove surplus NULL checks when freeing ENA resources

Description

ena: remove surplus NULL checks when freeing ENA resources

Calling free on a NULL pointer is valid, as appropriate check is already
done internally:

/* free(NULL, ...) does nothing */
if (addr == NULL)

return;

Submitted by: Artur Rojek <ar@semihalf.com>
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Details

Provenance
mwAuthored on Jun 14 2021, 8:57 AM
Parents
rGbeaadec9eaec: ena: add support for the large LLQ headers in ENA
Branches
Unknown
Tags
Unknown