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:
Danny Al-Gaaf 2013-03-11 12:52:44 +01:00
parent f7eec26a1d
commit 88b6b572d2

View File

@ -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);