mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
librbd/internal.cc: clarify expression with parentheses
From cppcheck: [src/librbd/internal.cc:379]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses.
This commit is contained in:
parent
f7eec26a1d
commit
88b6b572d2
@ -376,7 +376,7 @@ namespace librbd {
|
||||
return r;
|
||||
|
||||
// no children for non-layered or old format image
|
||||
if (!ictx->features & RBD_FEATURE_LAYERING)
|
||||
if ((ictx->features & RBD_FEATURE_LAYERING) == 0)
|
||||
return 0;
|
||||
|
||||
parent_spec parent_spec(ictx->md_ctx.get_id(), ictx->id, ictx->snap_id);
|
||||
|
Loading…
Reference in New Issue
Block a user