projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24eb52
)
[ZD1211RW]: Don't needlessly initialize variable to NULL in zd_chip
author
Jesper Juhl
<
[email protected]
>
Thu, 30 Aug 2007 22:30:31 +0000
(
00:30
+0200)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/wireless/zd1211rw/zd_chip.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/zd1211rw/zd_chip.c
b/drivers/net/wireless/zd1211rw/zd_chip.c
index 750c0f99e86f2ad06e8dc13760702dc326dcd245..3d60c69b20e76476ddb8e02f17dd4bf07cbfea78 100644
(file)
--- 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
{
int r;
int i;
- zd_addr_t *a16
= (zd_addr_t *)NULL
;
+ zd_addr_t *a16;
u16 *v16;
unsigned int count16;