]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/file.c
NFS: Fix the return value in nfs_page_mkwrite()
[linux-2.6-omap-h63xx.git] / fs / nfs / file.c
index 3523b895eb4b3b598a89399aceca8d77833cb595..5a97bcfe03e5e0d25b78d8122a6695f8d1c66acc 100644 (file)
@@ -516,8 +516,6 @@ static int nfs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
                goto out_unlock;
 
        ret = nfs_updatepage(filp, page, 0, pagelen);
-       if (ret == 0)
-               ret = pagelen;
 out_unlock:
        unlock_page(page);
        if (ret)