Skip to content

Commit

Permalink
ceph: remove useless check
Browse files Browse the repository at this point in the history
rc is only ever 0 or negative in this method.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed May 19, 2011
1 parent a2a7960 commit 6b4a3b5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ceph/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,6 @@ static int ceph_writepages_start(struct address_space *mapping,
out:
if (req)
ceph_osdc_put_request(req);
if (rc > 0)
rc = 0; /* vfs expects us to return 0 */
ceph_put_snap_context(snapc);
dout("writepages done, rc = %d\n", rc);
return rc;
Expand Down

0 comments on commit 6b4a3b5

Please sign in to comment.