linux/drivers/staging/rtl8712
Narcisa Ana Maria Vasile 09e1aa1aaa staging: rtl8712: Invert the test on check_fwstate() to reduce indentation
Negate if condition to be able to return immediately in case of error,
and then continue with the rest of the function
without extra indentation level.

This was found using the following Coccinelle script:

@disable neg_if@
expression e,E;
statement S;
@@

*if (e)
    S
    else { return -E; }

    @disable neg_if@
    expression e,E;
    statement S;
    identifier
    l;
    @@

    *if
(e)
    S
    else
{ rc = -E; goto l; }

Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-23 14:24:45 +01: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: changed typecast to __le 2017-01-03 16:51:16 +01:00
ieee80211.c staging: rtl8712: Moved logical OR operator to previous line. 2017-03-06 09:17:01 +01:00
ieee80211.h staging: rtl8712u: Fix endian settings for structs describing network packets 2017-02-12 13:26:55 +01:00
Kconfig
Makefile
mlme_linux.c staging:rtl8712 Aligned code with open parenthesis 2017-01-07 17:04:04 +01:00
mlme_osdep.h
mp_custom_oid.h
os_intfs.c staging: rtl8712: Remove space after a cast. 2017-03-06 09:17:03 +01:00
osdep_intf.h rtl8712: intf_priv: Replace semaphore lock with completion 2016-08-21 18:25:47 +02:00
osdep_service.h sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
recv_linux.c staging: r8712u: Fix leak of skb 2016-08-21 18:28:49 +02:00
recv_osdep.h
rtl871x_cmd.c staging : rtl8712: Free memory when kmalloc fails 2016-11-07 11:24:52 +01:00
rtl871x_cmd.h Staging: rtl8712: rtl871x_cmd.h - block comments 2017-03-06 09:17:03 +01:00
rtl871x_debug.h
rtl871x_eeprom.c
rtl871x_eeprom.h
rtl871x_event.h Staging: rtl8712: rtl871x_event.h - style fix 2017-03-06 09:17:03 +01:00
rtl871x_ht.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_io.c
rtl871x_io.h Staging: rtl8712: rtl871x_io.h - style fix 2017-03-06 09:17:03 +01:00
rtl871x_ioctl_linux.c staging: rtl8712: Invert the test on check_fwstate() to reduce indentation 2017-03-23 14:24:45 +01:00
rtl871x_ioctl_rtl.c staging: rtl8712: checkpatch: Avoid multiple line dereferences 2017-03-21 08:44:55 +01:00
rtl871x_ioctl_rtl.h
rtl871x_ioctl_set.c staging: rtl8712: Fix coding style warnings on Block comments 2016-11-21 11:15:18 +01:00
rtl871x_ioctl_set.h
rtl871x_ioctl.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_led.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_mlme.c staging: r8712u: Fix Sparse warnings in rtl871x_mlme.c 2017-02-12 13:26:55 +01:00
rtl871x_mlme.h Staging: rtl8712: rtl871x_mlme.h - style fix 2017-03-06 09:17:03 +01:00
rtl871x_mp_ioctl.c Staging: rtl8712: fix spelling errors 2017-01-25 11:33:21 +01:00
rtl871x_mp_ioctl.h Staging: rtl8712: rtl871x_mp_ioctl.h - style fix 2017-03-09 17:37:21 +01:00
rtl871x_mp_phy_regdef.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_mp.c staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_mp.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_pwrctrl.c staging: rtl8712: Fix coding style warnings on Block comments 2016-11-21 11:15:18 +01:00
rtl871x_pwrctrl.h Staging: rtl8712: rtl871x_pwrctrl.h - style fix 2017-03-06 09:17:03 +01:00
rtl871x_recv.c staging: r8712u: Fix Sparse endian warning in rtl871x_recv.c 2017-02-12 13:26:55 +01:00
rtl871x_recv.h Staging: rtl8712: rtl871x_recv.h - style fix 2017-03-06 09:17:03 +01:00
rtl871x_rf.h
rtl871x_security.c Staging: rtl8712: fix spelling errors 2017-01-25 11:33:21 +01:00
rtl871x_security.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_sta_mgt.c staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl871x_wlan_sme.h
rtl871x_xmit.c staging: r8712u: Fix Sparse warning in rtl871x_xmit.c 2017-02-12 13:26:55 +01:00
rtl871x_xmit.h Staging: rtl8712: remove unused functions 2016-10-16 10:24:51 +02:00
rtl8712_bitdef.h
rtl8712_cmd.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
rtl8712_cmd.h
rtl8712_cmdctrl_bitdef.h
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: rtl8712_efuse: Use !x instead of x == NULL. 2016-09-20 13:37:59 +02:00
rtl8712_efuse.h
rtl8712_event.h staging: rtl8712: changed function argument to __le32 2017-01-03 16:51:16 +01:00
rtl8712_fifoctrl_bitdef.h
rtl8712_fifoctrl_regdef.h
rtl8712_gp_bitdef.h
rtl8712_gp_regdef.h
rtl8712_hal.h Staging:rtl8712: Fixed coding style issue 2016-12-06 10:18:07 +01:00
rtl8712_interrupt_bitdef.h
rtl8712_io.c
rtl8712_led.c staging: rtl8712: fix bad indentation 2017-03-12 15:27:40 +01: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: Remove unnecessary cast on void pointer 2017-03-09 17:37:21 +01:00
rtl8712_recv.h staging: rtl8712: changed struct members to __le32 2017-01-03 16:49:19 +01:00
rtl8712_regdef.h
rtl8712_security_bitdef.h
rtl8712_spec.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
rtl8712_syscfg_bitdef.h staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
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: Fix some Sparse endian messages 2017-02-12 13:26:55 +01:00
rtl8712_xmit.h staging: rtl8712: changed variables to __le32 2017-01-03 16:51:16 +01:00
sta_info.h
TODO
usb_halinit.c staging: rtl8712: checkpatch cleanup: block comments using a trailing */ 2016-09-12 11:43:52 +02:00
usb_intf.c staging: rtl8172: usb_intf.c: Fixed block comment coding style 2016-09-26 22:22:13 +02:00
usb_ops_linux.c staging: rtl8712: changed uint to __le32 2017-01-03 16:51:16 +01:00
usb_ops.c staging: rtl8712: changed u32 to __le32 2017-01-03 16:51:16 +01:00
usb_ops.h
usb_osintf.h
wifi.h Staging: rtl8712: wifi.h - style fix 2017-03-06 09:17:03 +01:00
wlan_bssdef.h Staging: rtl8712: wlan_bssdef.h - style fix 2017-03-06 09:17:03 +01:00
xmit_linux.c staging: r8712u: Handle some false positives from kmemleak 2016-08-21 18:28:49 +02:00
xmit_osdep.h