[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1159735317.11887.10.camel@alice>
Date: Sun, 01 Oct 2006 22:41:57 +0200
From: Eric Sesterhenn <snakebyte@....de>
To: linux-kernel@...r.kernel.org
Cc: reiserfs-dev@...esys.com
Subject: [Patch] Remove unnecessary check in fs/reiserfs/inode.c
hi,
since all callers dereference dir, we dont need this check.
Coverity id #337.
Signed-off-by: Eric Sesterhenn <snakebyte@....de>
--- linux-2.6.18-git16/fs/reiserfs/inode.c.orig 2006-10-01 22:40:24.000000000 +0200
+++ linux-2.6.18-git16/fs/reiserfs/inode.c 2006-10-01 22:40:35.000000000 +0200
@@ -1780,7 +1780,7 @@ int reiserfs_new_inode(struct reiserfs_t
err = -EDQUOT;
goto out_end_trans;
}
- if (!dir || !dir->i_nlink) {
+ if (!dir->i_nlink) {
err = -EPERM;
goto out_bad_inode;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists