提交 6b4a3b51 编写于 作者: S Sage Weil

ceph: remove useless check

rc is only ever 0 or negative in this method.
Signed-off-by: NSage Weil <sage@newdream.net>
上级 a2a79609
...@@ -880,8 +880,6 @@ static int ceph_writepages_start(struct address_space *mapping, ...@@ -880,8 +880,6 @@ static int ceph_writepages_start(struct address_space *mapping,
out: out:
if (req) if (req)
ceph_osdc_put_request(req); ceph_osdc_put_request(req);
if (rc > 0)
rc = 0; /* vfs expects us to return 0 */
ceph_put_snap_context(snapc); ceph_put_snap_context(snapc);
dout("writepages done, rc = %d\n", rc); dout("writepages done, rc = %d\n", rc);
return rc; return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册