Simplify expression

This commit is contained in:
prpr 2023-12-26 23:48:22 +00:00
parent c0ed6a65d9
commit d5f21d0ef5

View File

@ -193,7 +193,7 @@ puts {
if {[catch {exec /bin/smartctl -l selftest $device} msg]} {
set rc [lindex $::errorCode 2]
set rc $($rc eq "" ? 1 : [expr {$rc & 7}])
set rc $($rc eq "" ? 1 : $rc & 7)
if {$rc} { set msg "" }
}