|
From: Gleb C. <lna...@ya...> - 2025-11-05 08:42:23
|
Commit: 2df209e GitHub URL: https://github.com/SCST-project/scst/commit/2df209ea5f832cc665bdff1652a754c86e3d96a9 Author: Gleb Chesnokov Date: 2025-11-05T11:41:41+03:00 Log Message: ----------- scstadmin: Fix precedence typo in error propagation Fix Perl precedence warnings: Possible precedence problem between ! and numeric gt (>) at SCST.pm line 980. Possible precedence problem between ! and numeric gt (>) at SCST.pm line 1223. Possible precedence problem between ! and numeric gt (>) at SCST.pm line 3847. Modified Paths: -------------- scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) =================================================================== diff --git a/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm b/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm index 0f5f9c8..af4738d 100644 --- a/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm +++ b/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm @@ -977,7 +977,7 @@ sub checkDriverDynamicAttributes { if (!defined($available)) { my $rc = $self->driverExists($driver); return SCST_C_DRV_NO_DRIVER if (!$rc); - return $rc if (!$rc > 1); + return $rc if ($rc > 1); return SCST_C_FATAL_ERROR; } @@ -1220,7 +1220,7 @@ sub checkTargetDynamicAttributes { if (!defined($available)) { my $rc = $self->driverExists($driver); return SCST_C_DRV_NO_DRIVER if (!$rc); - return $rc if (!$rc > 1); + return $rc if ($rc > 1); return SCST_C_FATAL_ERROR; } @@ -3844,7 +3844,7 @@ sub checkDeviceCreateAttributes { if (!defined($available)) { my $rc = $self->handlerExists($handler); return SCST_C_HND_NO_HANDLER if (!$rc); - return $rc if (!$rc > 1); + return $rc if ($rc > 1); return SCST_C_FATAL_ERROR; } |