HomeFreeBSD

dummynet: free(NULL, M_DUMMYNET); is safe

Description

dummynet: free(NULL, M_DUMMYNET); is safe

There's no need to check pointers for NULL before free()ing them.

No functional change.

MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D30382

(cherry picked from commit 1b2dbe37fa32d7255faf7d1feec7bb31414a8102)

Details

Provenance
kpAuthored on May 21 2021, 2:55 PM
Differential Revision
D30382: dummynet: free(NULL, M_DUMMYNET); is safe
Parents
rGbc90a9cb0a74: dummynet: Fix schedlist and aqmlist locking
Branches
Unknown
Tags
Unknown