diff options
author | Thorsten Blum <thorsten.blum@toblux.com> | 2024-09-01 18:19:13 +0200 |
---|---|---|
committer | Anna Schumaker <anna.schumaker@oracle.com> | 2024-09-23 21:03:12 +0200 |
commit | e343678ee990912a132e94236fe028efe78696b0 (patch) | |
tree | 24ebff1419c99b02a41e83146422f8a449019154 /net/rose | |
parent | nfs: Annotate struct nfs_cache_array with __counted_by() (diff) | |
download | linux-e343678ee990912a132e94236fe028efe78696b0.tar.xz linux-e343678ee990912a132e94236fe028efe78696b0.zip |
nfs: Remove unnecessary NULL check before kfree()
Since kfree() already checks if its argument is NULL, an additional
check before calling kfree() is unnecessary and can be removed.
Remove it and thus also the following Coccinelle/coccicheck warning
reported by ifnullfree.cocci:
WARNING: NULL check before some freeing functions is not needed
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'net/rose')
0 files changed, 0 insertions, 0 deletions