1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: check version prints error

Move 'bad' label above log_error, so the
error message is printed on 'bad' path.
(And return 0 is not without log_error()).
This commit is contained in:
Zdenek Kabelac 2014-08-19 14:22:22 +02:00
parent dec39b1a5f
commit 10e2370d2e

View File

@ -544,10 +544,10 @@ int dm_check_version(void)
dm_get_library_version(libversion, sizeof(libversion));
bad:
log_error("Incompatible libdevmapper %s%s and kernel driver %s",
libversion, compat, dmversion);
bad:
_version_ok = 0;
return 0;
}