summaryrefslogtreecommitdiffstats
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-05-13 00:43:48 +0200
committerSage Weil <sage@newdream.net>2011-05-19 20:25:05 +0200
commit6b4a3b517a767c483d16a200730b2967e0e23b83 (patch)
treec5451454b53e93f2b51538b260e447b12fa9b73f /fs/ceph/addr.c
parentlibceph: add missing breaks in addr_set_port (diff)
downloadlinux-6b4a3b517a767c483d16a200730b2967e0e23b83.tar.xz
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/addr.c')
-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;