Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 101d1f7f authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo
Browse files

ath6kl: remove redundant null pointer check on send_pkt



The check for send_pkt being NULL is redundant before the call
to htc_reclaim_txctrl_buf, therefore it should be removed. This was
detected by static analysis by cppcheck.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent f13e0630
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1085,8 +1085,6 @@ static int htc_setup_tx_complete(struct htc_target *target)
	send_pkt->completion = NULL;
	ath6kl_htc_tx_prep_pkt(send_pkt, 0, 0, 0);
	status = ath6kl_htc_tx_issue(target, send_pkt);

	if (send_pkt != NULL)
	htc_reclaim_txctrl_buf(target, send_pkt);

	return status;