mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
cleanup: coverity quiet
While through all codepaths we never 'read' lock_id unless LCKF_CONVERT, coverity cannot decrypt this. As since it's usually better to pass in 'well-defined' data structures preset lock_id to 0.
This commit is contained in:
parent
11151121aa
commit
b1dab26be0
@ -291,6 +291,7 @@ static int hold_lock(char *resource, int mode, int flags)
|
||||
}
|
||||
|
||||
lvi->lock_mode = mode;
|
||||
lvi->lock_id = 0;
|
||||
status = sync_lock(resource, mode, flags & ~LCKF_CONVERT, &lvi->lock_id);
|
||||
saved_errno = errno;
|
||||
if (status) {
|
||||
|
Loading…
Reference in New Issue
Block a user