diff options
author | Sage Weil <sage@newdream.net> | 2011-05-12 18:43:48 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-05-19 14:25:05 -0400 |
commit | 6b4a3b517a767c483d16a200730b2967e0e23b83 (patch) | |
tree | c5451454b53e93f2b51538b260e447b12fa9b73f /fs/ceph | |
parent | a2a79609c044d3ddb540671d5029a41c90c57251 (diff) |
ceph: remove useless check
rc is only ever 0 or negative in this method.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/addr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 38b8ab554924..54967268a340 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -880,8 +880,6 @@ release_pvec_pages: | |||
880 | out: | 880 | out: |
881 | if (req) | 881 | if (req) |
882 | ceph_osdc_put_request(req); | 882 | ceph_osdc_put_request(req); |
883 | if (rc > 0) | ||
884 | rc = 0; /* vfs expects us to return 0 */ | ||
885 | ceph_put_snap_context(snapc); | 883 | ceph_put_snap_context(snapc); |
886 | dout("writepages done, rc = %d\n", rc); | 884 | dout("writepages done, rc = %d\n", rc); |
887 | return rc; | 885 | return rc; |