Skip to content

Commit

Permalink
ceph: ceph_frag_contains_value can be boolean
Browse files Browse the repository at this point in the history
This patch makes ceph_frag_contains_value return bool to improve
readability due to this particular function only using either one or
zero as its return value.

No functional change.

Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
  • Loading branch information
Yaowei Bai authored and Ilya Dryomov committed Jan 21, 2016
1 parent eade1fe commit 79a3ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/ceph/ceph_frag.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static inline __u32 ceph_frag_mask_shift(__u32 f)
return 24 - ceph_frag_bits(f);
}

static inline int ceph_frag_contains_value(__u32 f, __u32 v)
static inline bool ceph_frag_contains_value(__u32 f, __u32 v)
{
return (v & ceph_frag_mask(f)) == ceph_frag_value(f);
}
Expand Down

0 comments on commit 79a3ed2

Please sign in to comment.