ceph: refactor readpage_nounlock() to make the logic clearer
authorZhang Zhen <zhenzhang.zhang@huawei.com>
Wed, 28 May 2014 07:09:55 +0000 (15:09 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Fri, 6 Jun 2014 01:29:56 +0000 (09:29 +0800)
commit23cd573b46c1f90645023ca2989bc041a0fcf38c
tree0ca41212c75a6b3e48b0fdcae31817b58cbb56c4
parentca665e0282ece4f8121ab4de474351f291fa8c2d
ceph: refactor readpage_nounlock() to make the logic clearer

If the return value of ceph_osdc_readpages() is not negative,
it is certainly greater than or equal to zero.

Remove the useless condition judgment and redundant braces.

Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/addr.c