1
0
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:
Zdenek Kabelac 2018-03-17 13:56:44 +01:00
parent 26c58027fb
commit f2d0eefa77

View File

@ -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)