linux/drivers/staging/vt6655
Himangi Saraogi 625fd1a991 staging:vt6655: Fix sparse warnings of using plain integer as NULL pointer
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>
2014-03-18 11:01:21 -07:00
..
80211hdr.h vt6655: balance faulty parentheses in 80211hdr.h 2014-01-08 11:04:46 -08:00
80211mgr.c staging: vt6655: Fix line over 80 characters. 2014-03-16 19:45:52 -07:00
80211mgr.h
aes_ccmp.c staging: vt6655: Remove unnecessary braces in aes_ccmp.c 2014-03-16 19:37:23 -07:00
aes_ccmp.h
baseband.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
baseband.h
bssdb.c staging: vt6655: delete explicit comparison to bool 2013-11-11 15:46:28 -08:00
bssdb.h
card.c staging: vt6655: remove unneeded semicolon 2013-11-10 11:15:08 -08:00
card.h
channel.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
channel.h
country.h
datarate.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
datarate.h
desc.h staging: vt6655: 64 bit Correct alignment of tx/rx structures. 2014-03-08 22:31:31 -08:00
device_cfg.h
device_main.c staging: remove DEFINE_PCI_DEVICE_TABLE macro 2013-12-02 22:32:35 -08:00
device.h staging: delete non-required instances of include <linux/init.h> 2013-12-17 10:08:14 -08:00
dpc.c staging: vt6655: 64 bit fixes TKIP mic correct sizeof long. 2014-03-08 22:31:31 -08:00
dpc.h
hostap.c vt6655: remove typedefs in wpactl.h 2014-01-08 11:05:20 -08:00
hostap.h
IEEE11h.c
IEEE11h.h
iocmd.h
ioctl.c
ioctl.h
iowpa.h
iwctl.c vt6655: remove typedefs in wpactl.h 2014-01-08 11:05:20 -08:00
iwctl.h
Kconfig
key.c staging: vt6655: 64 bit fixes: MACvSetKeyEntry correct sizeof long, 2014-03-08 22:31:31 -08:00
key.h
mac.c staging: vt6655: 64 bit fixes: MACvSetKeyEntry correct sizeof long, 2014-03-08 22:31:31 -08:00
mac.h staging: vt6655: 64 bit fixes: MACvSetKeyEntry correct sizeof long, 2014-03-08 22:31:31 -08:00
Makefile
mib.c
mib.h
michael.c staging: vt6655: 64 bit fixes :TKIP mode micheal.c sizeof long. 2014-03-08 22:31:31 -08:00
michael.h staging: vt6655: 64 bit fixes :TKIP mode micheal.c sizeof long. 2014-03-08 22:31:31 -08:00
power.c staging: vt6655: remove unneeded semicolon 2013-11-10 11:15:08 -08:00
power.h
rc4.c
rc4.h
rf.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
rf.h
rxtx.c staging: vt6655: 64 bit fix sizeof long TKIP mic 2014-03-08 22:31:32 -08:00
rxtx.h
srom.c
srom.h
tcrc.c
tcrc.h
test
tether.c
tether.h
tkip.c Staging: vt6655: Fix Sparse Warning for Static Declarations in tkip.c 2013-10-27 06:52:31 -07:00
tkip.h
tmacro.h
TODO
ttype.h
upc.h
vntconfiguration.dat
vntwifi.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
vntwifi.h
wcmd.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
wcmd.h
wctl.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
wctl.h
wmgr.c staging:vt6655: Fix sparse warnings of using plain integer as NULL pointer 2014-03-18 11:01:21 -07:00
wmgr.h
wpa2.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
wpa2.h
wpa.c staging: vt6655: delete explicit comparison to bool 2013-11-10 11:15:08 -08:00
wpa.h
wpactl.c staging: vt6655: Fix memory leak in wpa_ioctl() 2014-01-13 15:19:41 -08:00
wpactl.h vt6655: remove typedefs in wpactl.h 2014-01-08 11:05:20 -08:00
wroute.c vt6655: fix indentation in wroute.c 2014-01-08 11:04:46 -08:00
wroute.h