staging: rtl8188eu: replace switch-case with if
authorMartin Kaiser <martin@kaiser.cx>
Thu, 8 Apr 2021 19:55:53 +0000 (21:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:17:23 +0000 (16:17 +0200)
This switch has only one case. Replace it with an if statement.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210408195601.4762-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c

index 56ba0b8..e8222ff 100644 (file)
@@ -675,13 +675,9 @@ u32 usb_write_port(struct adapter *padapter, u32 addr, u32 cnt, struct xmit_buf
                         ("%s(): usb_submit_urb, status =%x\n",
                          __func__, status));
 
-               switch (status) {
-               case -ENODEV:
+               if (status == -ENODEV)
                        padapter->bDriverStopped = true;
-                       break;
-               default:
-                       break;
-               }
+
                goto exit;
        }