Skip to content

Commit

Permalink
NFS: nfs_write_end clean up
Browse files Browse the repository at this point in the history
Clean up: commit 4899f9c added nfs_write_end(), which introduces a
conditional expression that returns an unsigned integer in one arm and
a signed integer in the other.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Jan 30, 2008
1 parent bf4285e commit 3d509e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/nfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ static int nfs_write_end(struct file *file, struct address_space *mapping,
unlock_page(page);
page_cache_release(page);

return status < 0 ? status : copied;
if (status < 0)
return status;
return copied;
}

static void nfs_invalidate_page(struct page *page, unsigned long offset)
Expand Down

0 comments on commit 3d509e5

Please sign in to comment.