]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
timeconst.pl: remove deprecated defined(@array)
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 28 Sep 2012 00:18:54 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Oct 2012 03:56:27 +0000 (14:56 +1100)
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 <ilmari@ilmari.org>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/timeconst.pl

index eb51d76e058a401477776e279fba95c95a315a4a..04612394c53e2d32e393d8ff6d14e1de6e6a6c39 100644 (file)
@@ -370,7 +370,7 @@ if ($hz eq '--can') {
        }
 
        @val = @{$canned_values{$hz}};
-       if (!defined(@val)) {
+       if (!@val) {
                @val = compute_values($hz);
        }
        output($hz, @val);