linux/drivers/staging/irda
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
..
drivers Staging: irda: drivers: Move the curly bracket to the same line as if 2017-09-18 11:53:16 +02:00
include/net/irda staging: irda: Remove typedef struct 2017-09-18 11:50:40 +02:00
net Staging: irda: Use !x instead of NULL comparison 2017-09-18 11:53:16 +02:00
TODO staging: irda: add a TODO file. 2017-08-28 16:42:57 -07:00