Commit e643da21 authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo

ath6kl: remove redundant check of status != 0

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 5d6751ea
...@@ -898,9 +898,6 @@ static int htc_process_trailer(struct htc_target *target, u8 *buffer, ...@@ -898,9 +898,6 @@ static int htc_process_trailer(struct htc_target *target, u8 *buffer,
break; break;
} }
if (status != 0)
break;
/* advance buffer past this record for next time around */ /* advance buffer past this record for next time around */
buffer += record->len; buffer += record->len;
len -= record->len; len -= record->len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment