Browse Source

[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>
Jesper Juhl 18 years ago
parent
commit
fa46081c50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/wireless/zd1211rw/zd_chip.c

+ 1 - 1
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
 {
 	int r;
 	int i;
-	zd_addr_t *a16 = (zd_addr_t *)NULL;
+	zd_addr_t *a16;
 	u16 *v16;
 	unsigned int count16;