aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-08-30 18:30:31 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:17 -0400
commitfa46081c506ab518e8ea4095bc21b6d544006c00 (patch)
tree8ad721949d536e7122dc4f75b690b35736fc72c0
parente24eb521fbf2a350ce879dfc1d8e56d4ffa2aa22 (diff)
[ZD1211RW]: Don't needlessly initialize variable to NULL in zd_chip
No need to initialize to NULL when variable is never used before it's assigned the return value of a kmalloc() call. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/wireless/zd1211rw/zd_chip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_chip.c b/drivers/net/wireless/zd1211rw/zd_chip.c
index 750c0f99e86f..3d60c69b20e7 100644
--- a/drivers/net/wireless/zd1211rw/zd_chip.c
+++ b/drivers/net/wireless/zd1211rw/zd_chip.c
@@ -106,7 +106,7 @@ int zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr
106{ 106{
107 int r; 107 int r;
108 int i; 108 int i;
109 zd_addr_t *a16 = (zd_addr_t *)NULL; 109 zd_addr_t *a16;
110 u16 *v16; 110 u16 *v16;
111 unsigned int count16; 111 unsigned int count16;
112 112