[Patch] Remove unnecessary check in fs/reiserfs/inode.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

since all callers dereference dir, we dont need this check.
Coverity id #337.

Signed-off-by: Eric Sesterhenn <[email protected]>

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux