diff mbox

[1/5] kbuild: remove deprecated use of defined in timeconst.pl

Message ID 1353269117-39917-1-git-send-email-pefoley2@verizon.net (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Foley Nov. 18, 2012, 8:05 p.m. UTC
From: Peter Foley <pefoley2@verizon.net>

Fix this warning by removing a unneeded use of defined

TIMEC   kernel/timeconst.h
defined(@array) is deprecated at kernel/timeconst.pl line 373.
  	(Maybe you should just omit the defined()?)

Signed-off-by: Peter Foley <pefoley2@verizon.net>
---
 kernel/timeconst.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michal Marek Dec. 9, 2012, 4:57 p.m. UTC | #1
On 18.11.2012 21:05, pefoley2@verizon.net wrote:
> From: Peter Foley <pefoley2@verizon.net>
> 
> Fix this warning by removing a unneeded use of defined

An identical fix for this is in the -mm tree already.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);