mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
e24eb521fb
commit
fa46081c50
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue