From e4bf75d3524ba4903d2c6b91829dd5ee949fd9ae Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Thu, 25 Feb 2016 08:51:00 +0000 Subject: [PATCH] UBUNTU: SAUCE: timeconst.pl -- fix use of defined on arrays The recent perl transition has turned the use of defined(@array) into an error. The defined is simply not required. Remove it to quiet the error. BugLink: http://bugs.launchpad.net/bugs/1549677 Signed-off-by: Andy Whitcroft --- kernel/timeconst.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index eb51d76e058..04612394c53 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);