public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] Dead code in fs/9p/vfs_inode.c
@ 2006-06-28 22:52 Eric Sesterhenn
  2006-06-28 22:55 ` [V9fs-developer] " Russ Cox
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Sesterhenn @ 2006-06-28 22:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: v9fs-developer

hi,

coverity (id #971) found some dead code. In all error
cases ret is NULL, so we can remove the if statement.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6.17-git11/fs/9p/vfs_inode.c.orig	2006-06-29 00:50:53.000000000 +0200
+++ linux-2.6.17-git11/fs/9p/vfs_inode.c	2006-06-29 00:51:11.000000000 +0200
@@ -386,9 +386,6 @@ v9fs_inode_from_fid(struct v9fs_session_
 
 error:
 	kfree(fcall);
-	if (ret)
-		iput(ret);
-
 	return ERR_PTR(err);
 }
 



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-06-30 14:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-28 22:52 [Patch] Dead code in fs/9p/vfs_inode.c Eric Sesterhenn
2006-06-28 22:55 ` [V9fs-developer] " Russ Cox
2006-06-28 23:16   ` Eric Sesterhenn / Snakebyte
2006-06-28 23:24     ` Russ Cox
2006-06-28 23:41       ` Eric Sesterhenn / Snakebyte
2006-06-29  3:58     ` David Leimbach
2006-06-29  5:27   ` Pekka Enberg
2006-06-29 11:01   ` Jan Engelhardt
2006-06-29 15:16     ` Latchesar Ionkov
2006-06-30 13:44       ` Jan Engelhardt
2006-06-30 14:12         ` erik quanstrom

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