From 7dff7b93688c15b2ed767320a5db4571133d1daf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Thu, 13 Sep 2012 10:58:20 +1000 Subject: [PATCH] timeconst.pl: remove deprecated defined(@array) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- kernel/timeconst.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5