]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8188eu: core: Removed unnecessary return keyword.
authorGulsah Kose <gulsah.1004@gmail.com>
Wed, 29 Oct 2014 04:06:57 +0000 (06:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 19:20:15 +0000 (12:20 -0700)
This patch fixes
WARNING:  void function return statements are not generally useful
checkpatch.pl warning in rtw_efuse.c by using this coccinelle script

@r@
identifier i;
@@
void i(...)
{
...
-return;
}

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_efuse.c

index e037c43c28371d9cbb1774d4efa8f85b2f331b8c..bc897da8c10350563f181dbb01f0399896722d89 100644 (file)
@@ -322,7 +322,6 @@ void efuse_ReadEFuse(struct adapter *Adapter, u8 efuseType, u16 _offset, u16 _si
                iol_read_efuse(Adapter, 0, _offset, _size_byte, pbuf);
                iol_mode_enable(Adapter, 0);
        }
-       return;
 }
 
 /* Do not support BT */