2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00
linux-next/drivers/staging/rtl8188eu
Bhaktipriya Shridhar 6e9aeda3fa staging: rtl8188eu: core: rtw_mlme: Clean up tests if NULL returned on failure
Some functions like kmalloc/kzalloc return NULL on failure.
When NULL represents failure, !x is commonly used.

This was done using Coccinelle:

@@
expression *e;
identifier l1;
@@

e = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\)(...);
...
- e == NULL
+ !e

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-28 07:30:36 -07:00
..
core staging: rtl8188eu: core: rtw_mlme: Clean up tests if NULL returned on failure 2016-03-28 07:30:36 -07:00
hal Staging: rtl8188eu: usb_halinit: Use !x instead of x == NULL. 2016-03-28 07:30:36 -07:00
include staging: rtl8188eu: Remove license paragraph with mailing address 2016-03-28 07:30:36 -07:00
os_dep staging: rtl8188eu: Remove license paragraph with mailing address 2016-03-28 07:30:36 -07:00
Kconfig staging: rtl8188eu: Fix build error when CFG80211 is not selected 2015-09-29 04:27:22 +02:00
Makefile staging: rtl8188eu: provide an absolute path to include folder 2016-02-07 19:00:46 -08:00
TODO staging: rtl8*: fix my email address up 2016-02-11 19:33:46 -08:00