marsadm: silence warning

This commit is contained in:
Thomas Schoebel-Theuer 2020-08-01 20:02:48 +02:00
parent 1cfca1590b
commit 620327703b
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ sub device_exists {
my $val = get_link($lnk, 2);
# backwards compatibility to old kernels
my $lnk_old = "$mars/resource-$res/actual-$peer/device-$peer";
my $val_old = get_link($lnk, 2);
my $val_old = get_link($lnk_old, 2);
if (defined($val_old) && $val_old ne "" &&
(!defined($val) || $val eq "" ||
get_link_stamp($lnk_old) > get_link_stamp($lnk))) {