]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/9p/vfs_inode.c
9p: use an IS_ERR test rather than a NULL test
[linux-2.6-omap-h63xx.git] / fs / 9p / vfs_inode.c
index c95295c65045a3540959b0ddb9c227e1366472f3..e83aa5ebe861d2a8454985875d4f74a6736291a2 100644 (file)
@@ -626,8 +626,7 @@ static struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
        return NULL;
 
 error:
-       if (fid)
-               p9_client_clunk(fid);
+       p9_client_clunk(fid);
 
        return ERR_PTR(result);
 }