From: Eric Sesterhenn Date: Wed, 4 Oct 2006 09:15:30 +0000 (-0700) Subject: [PATCH] Remove unnecessary check in fs/reiserfs/inode.c X-Git-Tag: v2.6.19-rc1~151 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=585b7747d63e3a5f65628d21c1745edd926d7897;p=linux-2.6-omap-h63xx.git [PATCH] Remove unnecessary check in fs/reiserfs/inode.c Since all callers dereference dir, we dont need this check. Coverity id #337. Signed-off-by: Eric Sesterhenn Cc: Jeff Mahoney Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 7e5a2f5ebeb..9c69bcacad2 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c @@ -1780,7 +1780,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, err = -EDQUOT; goto out_end_trans; } - if (!dir || !dir->i_nlink) { + if (!dir->i_nlink) { err = -EPERM; goto out_bad_inode; }