linux/drivers/staging
Srishti Sharma af9cdf9571 Staging: irda: Use !x instead of NULL comparison
Test for NULL as !x where functions that return NULL on failure
are used. Done using the following semantic patch by coccinelle.

@ is_null @
expression E;
statement S;
@@

E = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|
usb_alloc_urb\|alloc_netdev\|dev_alloc_skb\)(...));

(
if(!E)
   S
|
-if(E==NULL)
+if(!E)
    S
)

Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-18 11:53:16 +02:00
..
android Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2017-09-14 18:13:32 -07:00
board
ccree Staging: ccree: Remove unused variable monitor_lock 2017-09-17 16:35:27 +02:00
clocking-wizard
comedi Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2017-09-14 18:13:32 -07:00
dgnc Staging: dgnc: Remove unused fields in struct channel_t 2017-09-18 11:45:25 +02:00
emxx_udc
fbtft staging: fbtft: array underflow in fbtft_request_gpios_match() 2017-07-28 17:08:16 -07:00
fsl-dpaa2 staging: fsl-dpaa2/eth: fix off-by-one FD ctrl bitmaks 2017-09-01 15:53:12 +02:00
fsl-mc Merge 4.13-rc7 into staging-next 2017-08-28 15:26:48 +02:00
fwserial
gdm724x Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
goldfish staging: goldfish: (Coding Style) Fixed parenthesis alignment. 2017-08-31 18:21:37 +02:00
greybus media updates for v4.14-rc1 2017-09-07 12:53:14 -07:00
gs_fpgaboot staging: gs_fpgaboot: return valid error codes 2017-07-28 17:07:37 -07:00
iio Second set of IIO new device support, features and cleanup for the 4.14 cycle. 2017-08-20 10:42:42 -07:00
irda Staging: irda: Use !x instead of NULL comparison 2017-09-18 11:53:16 +02:00
ks7010 staging: ks7010: Fix coding style and remove checkpatch.pl warnings. 2017-08-31 18:13:25 +02:00
lustre staging: lustre: lnet: Replace list_for_each with list_for_each_entry 2017-09-18 11:45:25 +02:00
media media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space 2017-09-05 07:29:29 -04:00
most staging: most: hdm_usb: Driver registration with module_driver macro 2017-08-27 19:59:10 +02:00
mt29f_spinand mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
netlogic net: phy: Make phy_ethtool_ksettings_get return void 2017-06-13 12:59:06 -04:00
nvec staging: nvec: explicitly request exclusive reset control 2017-07-30 08:28:21 -07:00
octeon staging: octeon: fix line over 80 characters 2017-08-18 15:57:17 -07:00
octeon-usb
olpc_dcon staging: olpc_dcon: remove pointless debug printk in dcon_freeze_store() 2017-08-28 10:27:29 +02:00
pi433 staging: pi433: Replace printk() with dev_dbg() 2017-09-17 16:35:27 +02:00
rtl8188eu staging:rtl8188eu:core Fix code Indent 2017-09-17 16:35:25 +02:00
rtl8192e Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
rtl8192u staging:r8192u: replace request_module with try_then_request_module 2017-09-17 16:35:27 +02:00
rtl8712 staging: rtl8712: Fix unbalanced braces around else statement 2017-09-17 16:35:27 +02:00
rtl8723bs staging: rtl8723bs: Change coding style to (foo *bar) 2017-09-17 16:35:27 +02:00
rtlwifi Staging: rtlwifi: Remove unnecessary 'out of memory' message. 2017-09-17 16:35:27 +02:00
rts5208 staging: rts5208: fix gcc-8 logic error warning 2017-09-17 16:35:25 +02:00
skein staging: skein: move macros into header file 2017-07-28 17:06:43 -07:00
sm750fb staging: sm750fb: Remove extra blank lines 2017-09-17 16:35:26 +02:00
speakup staging: speakup: remove NULL comparison 2017-09-18 11:50:40 +02:00
typec usb: typec: fusb302: Move out of staging 2017-09-18 10:58:31 +02:00
unisys SCSI misc on 20170907 2017-09-07 21:11:05 -07:00
vboxvideo Staging/IIO driver updates for 4.14-rc1 2017-09-05 10:36:26 -07:00
vc04_services Staging: vc04_services: bcm2835-camera: Fix spelling mistake 2017-09-17 16:35:26 +02:00
vme
vt6655 Staging: vt6655: Fixing coding style warnings 2017-07-18 09:00:24 +02:00
vt6656 staging: vt6656: Use variable instead of its type in sizeof(...) 2017-07-16 08:41:02 +02:00
wilc1000 staging: wilc1000: fix spelling mistake: "Iinitialization" -> "initialization" 2017-07-30 08:28:21 -07:00
wlan-ng staging: wlan-ng: Avoid bogus endianness 2017-09-17 16:35:28 +02:00
xgifb Staging: xgifb: XGI_main_26.c: Fix alignment to match parentheses 2017-09-17 16:35:26 +02:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-09-06 14:45:08 -07:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-09-06 14:45:08 -07:00