mirror of https://github.com/torvalds/linux.git
This patch fixes the following sparse warnings: drivers/staging/vt6655/wmgr.c:970:42: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:971:41: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:972:38: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:973:43: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:4110:37: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:4111:41: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:4112:34: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:4113:30: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:4114:35: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:4123:32: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:1815:41: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:1816:34: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:1817:30: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:1818:35: warning: Using plain integer as NULL pointer drivers/staging/vt6655/wmgr.c:2075:63: warning: Using plain integer as NULL pointer The following coccinelle script was used to achieve this: @rule1@ expression *x; @@ ( - x = 0; + x = NULL; | - (x == 0) + (x == NULL) | - (x != 0) + (x != NULL) ) Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| 80211hdr.h | ||
| 80211mgr.c | ||
| 80211mgr.h | ||
| IEEE11h.c | ||
| IEEE11h.h | ||
| Kconfig | ||
| Makefile | ||
| TODO | ||
| aes_ccmp.c | ||
| aes_ccmp.h | ||
| baseband.c | ||
| baseband.h | ||
| bssdb.c | ||
| bssdb.h | ||
| card.c | ||
| card.h | ||
| channel.c | ||
| channel.h | ||
| country.h | ||
| datarate.c | ||
| datarate.h | ||
| desc.h | ||
| device.h | ||
| device_cfg.h | ||
| device_main.c | ||
| dpc.c | ||
| dpc.h | ||
| hostap.c | ||
| hostap.h | ||
| iocmd.h | ||
| ioctl.c | ||
| ioctl.h | ||
| iowpa.h | ||
| iwctl.c | ||
| iwctl.h | ||
| key.c | ||
| key.h | ||
| mac.c | ||
| mac.h | ||
| mib.c | ||
| mib.h | ||
| michael.c | ||
| michael.h | ||
| power.c | ||
| power.h | ||
| rc4.c | ||
| rc4.h | ||
| rf.c | ||
| rf.h | ||
| rxtx.c | ||
| rxtx.h | ||
| srom.c | ||
| srom.h | ||
| tcrc.c | ||
| tcrc.h | ||
| test | ||
| tether.c | ||
| tether.h | ||
| tkip.c | ||
| tkip.h | ||
| tmacro.h | ||
| ttype.h | ||
| upc.h | ||
| vntconfiguration.dat | ||
| vntwifi.c | ||
| vntwifi.h | ||
| wcmd.c | ||
| wcmd.h | ||
| wctl.c | ||
| wctl.h | ||
| wmgr.c | ||
| wmgr.h | ||
| wpa.c | ||
| wpa.h | ||
| wpa2.c | ||
| wpa2.h | ||
| wpactl.c | ||
| wpactl.h | ||
| wroute.c | ||
| wroute.h | ||