1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-05 02:55:44 +00:00
rtl8812au/os_dep
Christian Bremvåg 0a4ce9dddc
staging: replace explicit NULL comparison
Replace explicit NULL comparison with ! operator to
simplify code.

Found with Coccinelle script:
@@
expression ptr;
position p;
statement s0;
@@

ptr@p =
\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|usb_alloc_urb\|
alloc_netdev\|dev_alloc_skb\)(...)
... when != ptr

if (
(
+ !
ptr
- == NULL
)
) s0
2019-08-16 23:10:38 +02:00
..
linux staging: replace explicit NULL comparison 2019-08-16 23:10:38 +02:00
osdep_service.c Hard disable old debug read/write file functions 2019-08-16 18:47:04 +02:00