提交 fa46081c 编写于 作者: J Jesper Juhl 提交者: David S. Miller

[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: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e24eb521
...@@ -106,7 +106,7 @@ int zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr ...@@ -106,7 +106,7 @@ int zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr
{ {
int r; int r;
int i; int i;
zd_addr_t *a16 = (zd_addr_t *)NULL; zd_addr_t *a16;
u16 *v16; u16 *v16;
unsigned int count16; unsigned int count16;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册