Re: [PATCH] btrfs: Remove some dead code

2016-11-03 Thread Tobias Klauser
On 2016-11-01 at 11:26:06 +0100, Christophe JAILLET wrote: > 'btrfs_iget()' can not return an error pointer, so this test can be > removed. This descrption does not match what the patch actually does. Shouldn't it say "...can not return NULL, so this test can be removed."? > Signed-off-by: Chr

[PATCH] btrfs: Remove unnecessary check for NULL

2014-04-25 Thread Tobias Klauser
iput() already checks for the inode being NULL, thus it's unnecessary to check before calling. Signed-off-by: Tobias Klauser --- fs/btrfs/scrub.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 0be7799..bd850b5 100644 ---