Commit 7451c4f0 authored by Carsten Otte's avatar Carsten Otte Committed by Trond Myklebust
Browse files

NFS: remove needless check in nfs_opendir()

Local variable res was initialized to 0 - no check needed here.
Signed-off-by: default avatarCarsten Otte <>
Cc: Trond Myklebust <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarTrond Myklebust <>
parent b9d9506d
......@@ -128,15 +128,14 @@ struct inode_operations nfs4_dir_inode_operations = {
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);
/* Call generic open code in order to cache credentials */
if (!res)
res = nfs_open(inode, filp);
res = nfs_open(inode, filp);
return res;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment