X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fexportfs%2Fexpfs.c;h=7b0f75dcf800ca1d8b54695d647a973859e05dcf;hb=440037287c5;hp=cc91227d3bb88dcdce06b83806baf6dd7f912225;hpb=4ea3ada2955e4519befa98ff55dd62d6dfbd1705;p=linux-2.6-omap-h63xx.git diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index cc91227d3bb..7b0f75dcf80 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c @@ -366,8 +366,6 @@ struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid, * Try to get any dentry for the given file handle from the filesystem. */ result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type); - if (!result) - result = ERR_PTR(-ESTALE); if (IS_ERR(result)) return result; @@ -422,8 +420,6 @@ struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid, target_dir = nop->fh_to_parent(mnt->mnt_sb, fid, fh_len, fileid_type); - if (!target_dir) - goto err_result; err = PTR_ERR(target_dir); if (IS_ERR(target_dir)) goto err_result;