staging: r8188eu: remove unnedeed parentheses in usbctrl_vendorreq()
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Sun, 19 Sep 2021 23:53:42 +0000 (01:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Sep 2021 11:53:47 +0000 (13:53 +0200)
Remove unneeded parentheses around a test for -ESHUTDOWN in
usbctrl_vendorreq().

Co-developed-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20210919235356.4151-6-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_ops_linux.c

index 117213c9f9847a53c3996143d38a93242ddcdade..8023d8d1eff0fd0c4d1eaff13f4a8e580ce7e8fb 100644 (file)
@@ -65,7 +65,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u16 value, void *pdata,
                                len, status, *(u32 *)pdata, vendorreq_times);
 
                        if (status < 0) {
-                               if (status == (-ESHUTDOWN) || status == -ENODEV) {
+                               if (status == -ESHUTDOWN || status == -ENODEV) {
                                        adapt->bSurpriseRemoved = true;
                                } else {
                                        struct hal_data_8188e   *haldata = GET_HAL_DATA(adapt);