xfs: remove unnecessary NULL check before kvfree()
authorChen Ni <nichen@iscas.ac.cn>
Thu, 13 Mar 2025 03:28:59 +0000 (11:28 +0800)
committerCarlos Maiolino <cem@kernel.org>
Tue, 18 Mar 2025 13:24:13 +0000 (14:24 +0100)
commit34ba1fcd74562b5a954e3fda5a303ab412682340
treea4da782527fd1e11c81cf6ab7a1c3358610da9c7
parentc3a60b673a229940ab531dfbe917a91c8ea3cefc
xfs: remove unnecessary NULL check before kvfree()

Remove unnecessary NULL check before kvfree() reported by
Coccinelle/coccicheck and the semantic patch at
scripts/coccinelle/free/ifnullfree.cocci.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_rtalloc.c