Messages in this thread Patch in this message | | | From | Dagfinn Ilmari Mannsåker <> | Subject | [PATCH] timeconst.pl: remove deprecated defined(@array) | Date | Wed, 15 Feb 2012 21:06:26 +0000 |
| |
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> --- kernel/timeconst.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index eb51d76..0461239 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); -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |