]> err.no Git - linux-2.6/commitdiff
[ZD1211RW]: Don't needlessly initialize variable to NULL in zd_chip
authorJesper Juhl <jesper.juhl@gmail.com>
Thu, 30 Aug 2007 22:30:31 +0000 (00:30 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:17 +0000 (16:52 -0700)
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>
drivers/net/wireless/zd1211rw/zd_chip.c

index 750c0f99e86f2ad06e8dc13760702dc326dcd245..3d60c69b20e76476ddb8e02f17dd4bf07cbfea78 100644 (file)
@@ -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;