ceph: remove useless check
authorSage Weil <sage@newdream.net>
Thu, 12 May 2011 22:43:48 +0000 (15:43 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 18:25:05 +0000 (11:25 -0700)
rc is only ever 0 or negative in this method.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/addr.c

index 38b8ab554924cd2d4a9ddf11ce3a79efe3d411cd..54967268a340121ba7c993d7a060b1490c80eb99 100644 (file)
@@ -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;