diff --git a/src/locking/lock_driver_sanlock.c b/src/locking/lock_driver_sanlock.c index 13940f1d9de86d3b1b15dd7af5fbfb99791daef6..295e45d98beac6d0ae0376c4156ceccd7b5a2d07 100644 --- a/src/locking/lock_driver_sanlock.c +++ b/src/locking/lock_driver_sanlock.c @@ -702,7 +702,7 @@ static int virLockManagerSanlockAcquire(virLockManagerPtr lock, goto error; } - if (state && STRNEQ(state, "") && 0) { + if (state && STRNEQ(state, "")) { if ((rv = sanlock_state_to_args((char *)state, &res_count, &res_args)) < 0) {