From: Dagfinn Ilmari Mannsåker Date: Tue, 14 Aug 2012 03:22:28 +0000 (+1000) Subject: timeconst.pl: remove deprecated defined(@array) X-Git-Tag: next-20120905~3^2~51 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3f07e1289f34a11df24d6a9ce2af6f032831386e;p=karo-tx-linux.git timeconst.pl: remove deprecated defined(@array) The use of defined() on arrays and hashes has been deprecated since perl 5.6, but until 5.17.6 it only warned on lexicals, not package globals. Signed-off-by: Dagfinn Ilmari Mannsåker Acked-by: "H. Peter Anvin" Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index eb51d76e058a..04612394c53e 100644 --- a/kernel/timeconst.pl +++ b/kernel/timeconst.pl @@ -370,7 +370,7 @@ if ($hz eq '--can') { } @val = @{$canned_values{$hz}}; - if (!defined(@val)) { + if (!@val) { @val = compute_values($hz); } output($hz, @val);