libceph: fix "Boolean result is used in bitwise operation" warning
This line dates back to 2013, but cppcheck complained because commit
2f713615dd ("libceph: move msgr1 protocol implementation to its own
file") moved it. Add parenthesis to silence the warning.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
@@ -1100,7 +1100,7 @@ static int read_partial_message(struct ceph_connection *con)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
BUG_ON(!con->in_msg ^ skip);
|
BUG_ON((!con->in_msg) ^ skip);
|
||||||
if (skip) {
|
if (skip) {
|
||||||
/* skip this message */
|
/* skip this message */
|
||||||
dout("alloc_msg said skip message\n");
|
dout("alloc_msg said skip message\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user