lkml.org 
[lkml]   [2006]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch] [trivial] remove needless check in nfs_opendir()
From
Date
local variable res was initialized to 0 - no check needed here.

signed-off-by: Carsten Otte <cotte@de.ibm.com>
--
diff -ruN linux-2.6.16/fs/nfs/dir.c linux-2.6.16-fix/fs/nfs/dir.c
--- linux-2.6.16/fs/nfs/dir.c 2006-03-20 06:53:29.000000000 +0100
+++ linux-2.6.16-fix/fs/nfs/dir.c 2006-03-21 14:01:41.000000000 +0100
@@ -131,8 +131,7 @@

lock_kernel();
/* Call generic open code in order to cache credentials */
- if (!res)
- res = nfs_open(inode, filp);
+ res = nfs_open(inode, filp);
unlock_kernel();
return res;
}

-
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/

\
 
 \ /
  Last update: 2006-03-21 14:36    [W:3.249 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site