]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
timeconst.pl: remove deprecated defined(@array)
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 14 Aug 2012 03:22:28 +0000 (13:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 20 Aug 2012 07:08:00 +0000 (17:08 +1000)
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);