linux/drivers/staging
Julia Lawall 9358354858 drivers/staging/usbip/userspace/libsrc/vhci_driver.c: test the just-initialized value
Test the just-initialized value rather than some other one.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
identifier x,y,f!={PTR_ERR,ERR_PTR,ERR_CAST};
statement S;
@@

x = f(...);
(
if (\(x == NULL\|IS_ERR(x)\)) S
|
*if (\(y == NULL\|IS_ERR(y)\))
 { ... when != x
   return ...; }
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: David Chang <dchang@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-23 14:42:34 -07:00
..
altera-stapl
asus_oled
bcm
brcm80211
comedi
cptm1217
crystalhd
cx25821
cxd2099
cxt1e1
dt3155v4l
easycap
echo
et131x
frontier
ft1000
gma500
go7007
hv
iio IIO: ADC: New driver for AD7190/AD7192/AD7195 4 Channel SPI ADC 2011-08-23 13:40:46 -07:00
intel_sst
keucr Staging: keucr: fix comments, braces, whitespaces coding style issue in tm6000.h 2011-08-23 14:38:45 -07:00
line6
lirc
mei
nvec
octeon
olpc_dcon staging: olpc_dcon: replace remaining calls to i2c_smbus_read/write 2011-08-23 14:37:09 -07:00
panel
phison
pohmelfs Staging: pohmelfs: Coding style fixes in trans.c 2011-08-23 14:25:04 -07:00
quatech_usb2
quickstart
rtl8187se Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-07-25 23:26:34 -07:00
rtl8192e
rtl8192u
rtl8712
rts5139
rts_pstor
sbe-2t3e3
sep
serqt_usb2
slicoss
sm7xx
solo6x10
speakup
spectra
ste_rmi4
tidspbridge
tm6000
usbip drivers/staging/usbip/userspace/libsrc/vhci_driver.c: test the just-initialized value 2011-08-23 14:42:34 -07:00
vme
vt6655 staging: vt6655: simplify MAC printing by using %pM 2011-08-23 14:36:17 -07:00
vt6656 staging: vt6656: use %pM for printing MACs 2011-08-23 14:36:18 -07:00
winbond
wlags49_h2
wlags49_h25
wlan-ng
xgifb staging: xgifb: replace video_type with FB_TYPE_PACKED_PIXELS 2011-08-23 14:24:26 -07:00
zcache
zram staging: zram: make global var "num_devices" use unique name 2011-08-23 14:34:19 -07:00
Kconfig staging: remove ath6kl 2011-08-23 14:27:49 -07:00
Makefile staging: remove ath6kl 2011-08-23 14:27:49 -07:00
staging.c