From: Sage Weil Date: Thu, 12 May 2011 22:43:48 +0000 (-0700) Subject: ceph: remove useless check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b4a3b517a767c483d16a200730b2967e0e23b83;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git ceph: remove useless check rc is only ever 0 or negative in this method. Signed-off-by: Sage Weil --- 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;