]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ath6kl: remove redundant check of status != 0
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Apr 2019 13:47:23 +0000 (14:47 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 29 Apr 2019 14:50:10 +0000 (17:50 +0300)
The check on status not being zero is redundant as previous code
paths that set status to an error value break out of the while
loop and hence status is never non-zero at the check. Remove
this redundant code.

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath6kl/htc_pipe.c

index 434b6682964662fa3b9e723fcead47745e5dd622..c68848819a52db31681b689885a438ae3d9f3af8 100644 (file)
@@ -898,9 +898,6 @@ static int htc_process_trailer(struct htc_target *target, u8 *buffer,
                        break;
                }
 
-               if (status != 0)
-                       break;
-
                /* advance buffer past this record for next time around */
                buffer += record->len;
                len -= record->len;