Fix for:
warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
OpRequestRef op)
{
ObjectContextRef obc;
- if (obc = object_contexts.lookup(hoid.get_head())) {
+ obc = object_contexts.lookup(hoid.get_head());
+ if (obc) {
if (obc->is_blocked()) {
wait_for_blocked_object(obc->obs.oi.soid, op);
return true;
return false;
}
}
- if (obc = object_contexts.lookup(hoid.get_snapdir())) {
+ obc = object_contexts.lookup(hoid.get_snapdir());
+ if (obc) {
if (obc->is_blocked()) {
wait_for_blocked_object(obc->obs.oi.soid, op);
return true;