2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 11:43:54 +08:00
linux-next/drivers/staging/rtl8192e
Gargi Sharma 5043bd3c33 staging: rtl8192e: replace explicit NULL comparison
Replace explicit NULL comparison with ! operator to
simplify code.

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

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

if (
(
+ !
ptr
- == NULL
)
) s0 else s1

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-06 09:17:01 +01:00
..
rtl8192e staging: rtl8192e: Remove useless parentheses 2017-03-06 09:17:01 +01:00
dot11d.c staging: rtl8192e: Fixed coding style wornings on Block comments. 2016-11-15 11:01:54 +01:00
dot11d.h staging: rtl8192e: Aligning the * on each line in block comments 2017-02-02 13:12:22 +01:00
Kconfig
license
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
rtl819x_BA.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtl819x_BAProc.c staging: rtl8192e: replace explicit NULL comparison 2017-03-06 09:17:01 +01:00
rtl819x_HT.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtl819x_HTProc.c staging: rtl8192e: Remove useless parentheses 2017-03-06 09:17:01 +01:00
rtl819x_Qos.h staging/rtl8192e: avoid comparing unsigned type >= 0 2016-08-21 18:21:28 +02:00
rtl819x_TS.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtl819x_TSProc.c staging: rtl8192e: Fixed coding style wornings on Block comments. 2016-11-15 11:01:54 +01:00
rtllib_crypt_ccmp.c staging: rtl8192e: Prefer using macro DIV_ROUND_UP 2016-03-11 22:09:09 -08:00
rtllib_crypt_tkip.c Staging driver patches for 4.6-rc1 2016-03-17 22:13:41 -07:00
rtllib_crypt_wep.c staging: rtl8192e: Replace uses of obsolete blkcipher and hash 2016-01-27 20:35:46 +08:00
rtllib_debug.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtllib_module.c Staging: rtl8192e: Use !x instead of x == NULL 2016-09-18 12:37:43 +02:00
rtllib_rx.c net: Remove usage of net_device last_rx member 2017-01-18 17:22:49 -05:00
rtllib_softmac_wx.c rtl8192e: rtllib_device: Replace semaphore wx_sem with mutex 2016-08-21 18:22:31 +02:00
rtllib_softmac.c Staging: rtl8192e: remove redundant null check on array alg 2017-02-10 15:06:44 +01:00
rtllib_tx.c staging: rtl8192e: fixed use a blank line after function/struct/union/enum declarations 2016-09-28 11:39:10 +02:00
rtllib_wx.c rtl8192e: rtllib_device: Replace semaphore wx_sem with mutex 2016-08-21 18:22:31 +02:00
rtllib.h staging: rtl8188eu: core: rtw_xmit: Use macros instead of constants 2016-10-02 17:26:57 +02:00
TODO