nfc: mrvl: remove useless "continue" at end of loop
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 2 Jun 2021 11:20:10 +0000 (13:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 20:59:08 +0000 (13:59 -0700)
The "continue" statement at the end of a for loop does not have an
effect.  Entire loop contents can be slightly simplified to increase
code readability.  No functional change.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nfcmrvl/usb.c

index 50f06dd1ba253544b1378542c478ae6258554bb5..559814869c73606deda2d689f8c7ee997695000a 100644 (file)
@@ -308,13 +308,9 @@ static int nfcmrvl_probe(struct usb_interface *intf,
                if (!drv_data->bulk_tx_ep &&
                    usb_endpoint_is_bulk_out(ep_desc)) {
                        drv_data->bulk_tx_ep = ep_desc;
-                       continue;
-               }
-
-               if (!drv_data->bulk_rx_ep &&
-                   usb_endpoint_is_bulk_in(ep_desc)) {
+               } else if (!drv_data->bulk_rx_ep &&
+                          usb_endpoint_is_bulk_in(ep_desc)) {
                        drv_data->bulk_rx_ep = ep_desc;
-                       continue;
                }
        }