mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
coverity: make use of defined variable
Since we declare 'r', let's use the value for something.
This commit is contained in:
parent
26c58027fb
commit
f2d0eefa77
@ -649,14 +649,10 @@ static int _aligned_io(struct device_area *where, char *write_buffer,
|
||||
/* ... then we write */
|
||||
devbuf->write = 1;
|
||||
if (!(r = _io(devbuf, 0)))
|
||||
goto_bad;
|
||||
|
||||
_release_devbuf(devbuf);
|
||||
return 1;
|
||||
|
||||
stack;
|
||||
bad:
|
||||
_release_devbuf(devbuf);
|
||||
return 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
static int _dev_get_size_file(struct device *dev, uint64_t *size)
|
||||
|
Loading…
Reference in New Issue
Block a user