summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-05-12 15:43:48 -0700
committerSage Weil <sage@newdream.net>2011-05-19 11:25:05 -0700
commit6b4a3b517a767c483d16a200730b2967e0e23b83 (patch)
treec5451454b53e93f2b51538b260e447b12fa9b73f /fs/ceph
parenta2a79609c044d3ddb540671d5029a41c90c57251 (diff)
downloadblackbird-op-linux-6b4a3b517a767c483d16a200730b2967e0e23b83.tar.gz
blackbird-op-linux-6b4a3b517a767c483d16a200730b2967e0e23b83.zip
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.c2
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:
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;
OpenPOWER on IntegriCloud