mirror of https://github.com/schoebel/mars
marsadm: silence warning
This commit is contained in:
parent
1cfca1590b
commit
620327703b
|
@ -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))) {
|
||||
|
|
Loading…
Reference in New Issue