From: Carsten Otte Local variable res was initialized to 0 - no check needed here. Signed-off-by: Carsten Otte Cc: Trond Myklebust Signed-off-by: Andrew Morton --- fs/nfs/dir.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -puN fs/nfs/dir.c~remove-needless-check-in-nfs_opendir fs/nfs/dir.c --- devel/fs/nfs/dir.c~remove-needless-check-in-nfs_opendir 2006-04-11 11:22:41.000000000 -0700 +++ devel-akpm/fs/nfs/dir.c 2006-04-11 11:22:52.000000000 -0700 @@ -128,15 +128,14 @@ struct inode_operations nfs4_dir_inode_o static int nfs_opendir(struct inode *inode, struct file *filp) { - int res = 0; + int res; dfprintk(VFS, "NFS: opendir(%s/%ld)\n", inode->i_sb->s_id, inode->i_ino); 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; } _