diff mbox

atm:he - Do not initialise statics to 0.

Message ID 1433428860-3467-1-git-send-email-shailendra.capricorn@gmail.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Shailendra Verma June 4, 2015, 2:41 p.m. UTC
According to <stdbool.h> false is always '0' and
Static variables are initialised to 0 by GCC.

Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
---
 drivers/atm/he.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller June 4, 2015, 10:43 p.m. UTC | #1
From: Shailendra Verma <shailendra.capricorn@gmail.com>
Date: Thu,  4 Jun 2015 20:11:00 +0530

> According to <stdbool.h> false is always '0' and
> Static variables are initialised to 0 by GCC.
> 
> Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" 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/drivers/atm/he.c b/drivers/atm/he.c
index 0237271..a8da3a5 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -117,7 +117,7 @@  static short nvpibits = -1;
 static short nvcibits = -1;
 static short rx_skb_reserve = 16;
 static bool irq_coalesce = true;
-static bool sdh = 0;
+static bool sdh;
 
 /* Read from EEPROM = 0000 0011b */
 static unsigned int readtab[] = {