staging: rtl8188eu: remove braces from single if else statement
authorMichael Straube <straube.linux@gmail.com>
Thu, 22 Nov 2018 13:52:13 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Nov 2018 09:58:45 +0000 (10:58 +0100)
Remove braces from single line if else statement.
Reported by checkpatch.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c

index d792301..5a41766 100644 (file)
@@ -259,11 +259,10 @@ static int usbctrl_vendorreq(struct adapter *adapt, u8 request, u16 value, u16 i
                                len, status, *(u32 *)pdata, vendorreq_times);
 
                        if (status < 0) {
-                               if (status == (-ESHUTDOWN) || status == -ENODEV) {
+                               if (status == (-ESHUTDOWN) || status == -ENODEV)
                                        adapt->bSurpriseRemoved = true;
-                               } else {
+                               else
                                        adapt->HalData->srestpriv.Wifi_Error_Status = USB_VEN_REQ_CMD_FAIL;
-                               }
                        } else { /*  status != len && status >= 0 */
                                if (status > 0) {
                                        if (requesttype == 0x01) {