mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Patch] Remove unnecessary check in fs/reiserfs/inode.c
@ 2006-10-01 20:41 Eric Sesterhenn
  0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn @ 2006-10-01 20:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: reiserfs-dev

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;
 	}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-01 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-01 20:41 [Patch] Remove unnecessary check in fs/reiserfs/inode.c Eric Sesterhenn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®