]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
ts-hosts-allocate-Executive: Clarify an expression with //
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 11 Nov 2014 19:28:24 +0000 (19:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 17 Nov 2014 17:32:10 +0000 (17:32 +0000)
No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ts-hosts-allocate-Executive

index fc54cdafb5211616156d2e17c587a53f62bf2772..9562a0a8c53c2c795dfaec319dd9062070534361 100755 (executable)
@@ -464,8 +464,7 @@ sub hid_recurse ($$) {
            !defined($duration) ||
            defined($cand->{Duration}) && $cand->{Duration} >= $duration;
         $previously_failed++ if
-           defined $cand->{MostRecentStatus} &&
-           $cand->{MostRecentStatus} eq 'fail';
+           ($cand->{MostRecentStatus} // '') eq 'fail';
     }
     my $duration_rightaway_adjust= 0;