Messages in this thread Patch in this message | | | Subject | [Patch] Remove unnecessary check in fs/reiserfs/inode.c | From | Eric Sesterhenn <> | Date | Sun, 01 Oct 2006 22:41:57 +0200 |
| |
hi,
since all callers dereference dir, we dont need this check. Coverity id #337.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |