Bluetooth: btmrvl: remove redundant continue statement
authorColin Ian King <colin.king@canonical.com>
Wed, 16 Jun 2021 13:07:57 +0000 (14:07 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:44 +0000 (07:12 +0200)
The continue statement in the for-loop has no effect,
remove it.

Addresses-Coverity: ("Continue has no effect")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmrvl_sdio.c

index 33d58b3..cddd350 100644 (file)
@@ -1461,9 +1461,7 @@ static void btmrvl_sdio_coredump(struct device *dev)
                                        BT_ERR("Allocated buffer not enough");
                        }
 
-                       if (stat != RDWR_STATUS_DONE) {
-                               continue;
-                       } else {
+                       if (stat == RDWR_STATUS_DONE) {
                                BT_INFO("%s done: size=0x%tx",
                                        entry->mem_name,
                                        dbg_ptr - entry->mem_ptr);