Message ID | 20250313032859.2094462-1-nichen@iscas.ac.cn (mailing list archive) |
---|---|
State | Queued |
Headers | show |
Series | [-next,V2] xfs: remove unnecessary NULL check before kvfree() | expand |
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 9a99629d7de4..3aa222ea9500 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@ -1212,8 +1212,7 @@ xfs_growfs_rtg( goto out_error; } - if (old_rsum_cache) - kvfree(old_rsum_cache); + kvfree(old_rsum_cache); goto out_rele; out_error: