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: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
5d6751eaff
commit
e643da21e1
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue