aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
diff options
context:
space:
mode:
authorGravatar Michael Straube <straube.linux@gmail.com> 2018-11-22 14:52:13 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2018-11-23 10:58:45 +0100
commitfa50658ec33754bb91819445e4e130f18604dfcc (patch)
tree0b8c09dfad28c03f807d79d8b6a91ea743c279bd /drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
parentstaging: rtl8188eu: cleanup line ending with a '(' (diff)
downloadlinux-fa50658ec33754bb91819445e4e130f18604dfcc.tar.gz
linux-fa50658ec33754bb91819445e4e130f18604dfcc.tar.bz2
linux-fa50658ec33754bb91819445e4e130f18604dfcc.zip
staging: rtl8188eu: remove braces from single if else statement
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>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
index d792301a5ac2..5a41766bba68 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
@@ -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) {