diff options
author | Sage Weil <sage@newdream.net> | 2011-05-13 02:43:48 +0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-05-19 22:25:05 +0400 |
commit | 6b4a3b517a767c483d16a200730b2967e0e23b83 (patch) | |
tree | c5451454b53e93f2b51538b260e447b12fa9b73f /fs | |
parent | a2a79609c044d3ddb540671d5029a41c90c57251 (diff) | |
download | linux-6b4a3b517a767c483d16a200730b2967e0e23b83.tar.xz |
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')
-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: 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; |