linux/drivers/staging/rtl8712
Bhaktipriya Shridhar 4d97b69147 staging: rtl8712: mlme_linux: Clean up tests if NULL returned on failure
Some functions like 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
..
Kconfig
Makefile
TODO staging: refresh TODO for rtl8712 2016-03-22 22:22:13 -04:00
basic_types.h staging: rtl8712: Fixed FSF address warning in basic_types.h 2016-03-28 07:30:36 -07:00
drv_types.h staging: rtl8712: Fixed FSF address warning in drv_types.h 2016-03-28 07:30:36 -07:00
ethernet.h staging: rtl8712: Fixed FSF address warning in ethernet.h 2016-03-28 07:30:36 -07:00
hal_init.c staging: rtl8712: Fixed FSF address warning in hal_init.c 2016-03-28 07:30:36 -07:00
ieee80211.c staging: rtl8712: Fixed FSF address warning in ieee80211.c 2016-03-28 07:30:36 -07:00
ieee80211.h staging: rtl8712: Remove unused CamelCase define 2016-02-07 19:50:09 -08:00
mlme_linux.c staging: rtl8712: mlme_linux: Clean up tests if NULL returned on failure 2016-03-28 07:30:36 -07:00
mlme_osdep.h
mp_custom_oid.h
os_intfs.c staging: rtl8712: os_intfs: Change form of NULL comparisons 2016-03-28 07:30:36 -07:00
osdep_intf.h
osdep_service.h staging/rtl8712 : Remove duplicated BIT() definitions 2015-09-12 18:24:56 -07:00
recv_linux.c Staging: rtl8712: Avoid multiple assignments. 2016-03-11 22:09:09 -08:00
recv_osdep.h staging: rtl8712: recv_linux: Remove unused function 2015-01-25 19:59:18 +08:00
rtl871x_cmd.c staging: rtl8712: rtl871x_cmd: Clean up tests if NULL returned on failure 2016-03-28 07:30:36 -07:00
rtl871x_cmd.h Staging: rtl8712: Remove function r8712_setptm_cmd and r8712_gettssi_cmd 2016-03-11 22:09:09 -08:00
rtl871x_debug.h
rtl871x_eeprom.c staging: rtl8712: Remove boolean comparisons 2015-10-24 19:26:59 -07:00
rtl871x_eeprom.h
rtl871x_event.h staging: rtl8712: remove duplicate struct 2015-08-07 15:14:03 -07:00
rtl871x_ht.h
rtl871x_io.c Staging: rtl8712: Clean up tests if NULL returned on failure 2016-03-11 22:09:09 -08:00
rtl871x_io.h staging: rtl8712: rtl871x_io: Remove unused function 2015-10-29 07:55:17 +09:00
rtl871x_ioctl.h staging: rtl8712: Remove unnecessary externs 2015-08-14 18:51:56 -07:00
rtl871x_ioctl_linux.c staging: rtl8712: rtl871x_ioctl_linux: Clean up tests if NULL returned on failure 2016-03-28 07:30:36 -07:00
rtl871x_ioctl_rtl.c Staging: rtl8712: Remove unnecessary cast on void pointer 2016-02-07 19:52:30 -08:00
rtl871x_ioctl_rtl.h
rtl871x_ioctl_set.c staging: rtl8712: rtl871x_ioctl_set: Remove unused macro 2016-03-28 07:30:36 -07:00
rtl871x_ioctl_set.h
rtl871x_led.h
rtl871x_mlme.c staging: rtl8712: rtl871x_mlme: Clean up tests if NULL returned on failure 2016-03-28 07:30:36 -07:00
rtl871x_mlme.h staging: rtl8712: Remove boolean comparisons 2015-10-24 19:26:59 -07:00
rtl871x_mp.c staging: rtl8712: Remove the unnecessary parantheses 2016-03-11 22:09:09 -08:00
rtl871x_mp.h staging: rtl8712: rtl871x_mp: Remove unused function 2015-10-27 16:58:00 +09:00
rtl871x_mp_ioctl.c staging: rtl8712: spaces preferred around operands 2015-10-24 19:26:59 -07:00
rtl871x_mp_ioctl.h staging: rtl8712: rtl871x_mp_ioctl: Remove exceptional & on function name 2016-03-11 22:09:09 -08:00
rtl871x_mp_phy_regdef.h Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
rtl871x_pwrctrl.c staging: rtl8712: Remove boolean comparisons 2015-10-24 19:26:59 -07:00
rtl871x_pwrctrl.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
rtl871x_recv.c staging: rtl8712: use list_first_entry_or_null() 2016-02-07 19:53:04 -08:00
rtl871x_recv.h
rtl871x_rf.h
rtl871x_security.c staging: rtl8712: spaces preferred around operands 2015-10-24 19:26:59 -07:00
rtl871x_security.h Staging: rtl8712: Eliminate use of _init_timer 2015-03-06 09:54:34 -08:00
rtl871x_sta_mgt.c Staging: rtl8712: Clean up tests if NULL returned on failure 2016-03-11 22:09:09 -08:00
rtl871x_wlan_sme.h
rtl871x_xmit.c Staging: rtl8712: Clean up tests if NULL returned on failure 2016-03-11 22:09:09 -08:00
rtl871x_xmit.h
rtl8712_bitdef.h
rtl8712_cmd.c staging: rtl8712: rtl8712_cmd.c: fixed comparison to null 2016-03-28 07:30:36 -07:00
rtl8712_cmd.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
rtl8712_cmdctrl_bitdef.h Staging: rtl8712: rtl8712_cmdctrl_bitdef.h: Coding style warning fix for block comment 2015-10-08 10:34:50 +01:00
rtl8712_cmdctrl_regdef.h
rtl8712_debugctrl_bitdef.h
rtl8712_debugctrl_regdef.h
rtl8712_edcasetting_bitdef.h
rtl8712_edcasetting_regdef.h
rtl8712_efuse.c staging: rtl8712: Fixed a comparision coding style warning. 2016-02-14 16:49:09 -08:00
rtl8712_efuse.h
rtl8712_event.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
rtl8712_fifoctrl_bitdef.h
rtl8712_fifoctrl_regdef.h
rtl8712_gp_bitdef.h Staging: rtl8712: rtl8712_gp_bitdef.h: Coding style warning fix for block comment 2015-10-08 10:34:50 +01:00
rtl8712_gp_regdef.h
rtl8712_hal.h Staging: rtl8712: rtl8712_hal.h: Coding style warnings fix for block comments 2015-10-08 10:34:50 +01:00
rtl8712_interrupt_bitdef.h
rtl8712_io.c staging: rtl8712: Cleanup _io_ops wrappers 2016-02-07 19:50:09 -08:00
rtl8712_led.c staging: rtl8712: spaces preferred around operands 2015-10-24 19:26:59 -07:00
rtl8712_macsetting_bitdef.h
rtl8712_macsetting_regdef.h
rtl8712_powersave_bitdef.h
rtl8712_powersave_regdef.h
rtl8712_ratectrl_bitdef.h
rtl8712_ratectrl_regdef.h
rtl8712_recv.c staging: rtl8712: spaces preferred around operands 2015-10-24 19:26:59 -07:00
rtl8712_recv.h
rtl8712_regdef.h
rtl8712_security_bitdef.h
rtl8712_spec.h
rtl8712_syscfg_bitdef.h
rtl8712_syscfg_regdef.h
rtl8712_timectrl_bitdef.h
rtl8712_timectrl_regdef.h
rtl8712_wmac_bitdef.h
rtl8712_wmac_regdef.h
rtl8712_xmit.c staging: rtl8712: spaces preferred around operands 2015-10-24 19:26:59 -07:00
rtl8712_xmit.h
sta_info.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
usb_halinit.c staging: rtl8712: spaces preferred around operands 2015-10-24 19:26:59 -07:00
usb_intf.c staging: rtl8712: Remove exceptional & on function name 2016-03-11 22:09:09 -08:00
usb_ops.c staging: rtl8712: Remove exceptional & on function name 2016-03-11 22:09:09 -08:00
usb_ops.h
usb_ops_linux.c staging: rtl8712: usb_ops_linux: Clean up tests if NULL returned on failure 2016-03-28 07:30:36 -07:00
usb_osintf.h
wifi.h staging/rtl8712 : Remove duplicated BIT() definitions 2015-09-12 18:24:56 -07:00
wlan_bssdef.h staging: rtl8712: change SupportedRates to rates 2015-08-07 15:14:04 -07:00
xmit_linux.c staging: rtl8712: Make return of 0 explicit 2016-03-11 22:09:09 -08:00
xmit_osdep.h