mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix warning.
This commit is contained in:
parent
8762b5aad4
commit
4782f379e2
@ -70,7 +70,7 @@ static int _readonly_lock_resource(struct cmd_context *cmd,
|
||||
const char *resource,
|
||||
uint32_t flags)
|
||||
{
|
||||
if (flags & LCK_TYPE_MASK == LCK_WRITE) {
|
||||
if ((flags & LCK_TYPE_MASK) == LCK_WRITE) {
|
||||
log_error("Write locks are prohibited with --ignorelockingfailure.");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user