1
0
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:
Zdenek Kabelac 2024-05-20 14:46:20 +02:00
parent 01e014a246
commit fdfe80f024

View File

@ -423,8 +423,7 @@ static int _mirrored_target_present(struct cmd_context *cmd,
*/
/* FIXME Move this into libdevmapper */
if (target_version(TARGET_NAME_MIRROR, &maj, &min, &patchlevel) &&
maj == 1 &&
if (maj == 1 &&
((min >= 1) ||
(min == 0 && driver_version(vsn, sizeof(vsn)) &&
sscanf(vsn, "%u.%u.%u", &maj2, &min2, &patchlevel2) == 3 &&