mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
mirror: drop unneeded call
Major,minor,patchlevel are already set from previous call.
This commit is contained in:
parent
01e014a246
commit
fdfe80f024
@ -423,8 +423,7 @@ static int _mirrored_target_present(struct cmd_context *cmd,
|
|||||||
*/
|
*/
|
||||||
/* FIXME Move this into libdevmapper */
|
/* FIXME Move this into libdevmapper */
|
||||||
|
|
||||||
if (target_version(TARGET_NAME_MIRROR, &maj, &min, &patchlevel) &&
|
if (maj == 1 &&
|
||||||
maj == 1 &&
|
|
||||||
((min >= 1) ||
|
((min >= 1) ||
|
||||||
(min == 0 && driver_version(vsn, sizeof(vsn)) &&
|
(min == 0 && driver_version(vsn, sizeof(vsn)) &&
|
||||||
sscanf(vsn, "%u.%u.%u", &maj2, &min2, &patchlevel2) == 3 &&
|
sscanf(vsn, "%u.%u.%u", &maj2, &min2, &patchlevel2) == 3 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user