wifi: ath12k: Refactor error handler of Rxdma replenish
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Wed, 20 Mar 2024 01:06:15 +0000 (06:36 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 21 Mar 2024 11:38:13 +0000 (13:38 +0200)
commitf42bfbe7a507de0017ab61538ca40546e223aa0e
treee25caa7eb0d15889fe4e042549d35fb2ff65b192
parent597b4dd63afa77007544f5e6b4d44a91187bc62f
wifi: ath12k: Refactor error handler of Rxdma replenish

The Rxdma replenish handler currently contains redundant code in both the
success and error cases. To avoid the redundant code, implement a
conditional jump mechanism by placing a goto statement to prevent
unnecessary execution of the error handling code when the operation is
successful. This change streamline the code readability and enhance its
efficiency.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240320010615.91331-4-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/dp_rx.c