Skip to contentSkip to conversation

accel/qaic: Remove redundant retry_count = 0 statement

PATCH Applied Youssef Samir 3 participants 4 messages Oct 7, 2025 – Oct 14, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel/qaic: Remove redundant retry_count = 0 statement

From: Youssef Samir <[email protected]>

If msg_xfer() is called and the channel ring does not have enough room to accommodate the whole message, the function sleeps and tries again. It uses retry_count to keep track of the number of retrials done. This variable is not used after the space check succeeds. So, remove the retry_count = 0 statement used later in the function.

---
 drivers/accel/qaic/qaic_control.c | 1 -
 1 file changed, 1 deletion(-)
drivers/accel/qaic/qaic_control.c +0 -1
index d8bdab69f800..5aa49e0e1869 100644
@@ -1079,7 +1079,6 @@ static void *msg_xfer(struct qaic_device *qdev, struct wrapper_list *wrappers, u
 
 	list_for_each_entry(w, &wrappers->list, list) {
 		kref_get(&w->ref_count);
-		retry_count = 0;
 		ret = mhi_queue_buf(qdev->cntl_ch, DMA_TO_DEVICE, &w->msg, w->len,
 				    list_is_last(&w->list, &wrappers->list) ? MHI_EOT : MHI_CHAIN);
 		if (ret) {
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Youssef Samir

From: Youssef Samir <[email protected]>

If msg_xfer() is called and the channel ring does not have enough room to accommodate the whole message, the function sleeps and tries again. It uses retry_count to keep track of the number of retrials done. This variable is not used after the space check succeeds. So, remove the retry_count = 0 statement used later in the function.

reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Youssef Samir
Quoted 11 lines · Youssef Samir

From: Youssef Samir <[email protected]>

If msg_xfer() is called and the channel ring does not have enough room to accommodate the whole message, the function sleeps and tries again. It uses retry_count to keep track of the number of retrials done. This variable is not used after the space check succeeds. So, remove the retry_count = 0 statement used later in the function.

---

maintainer Applied
#3 lore raw
In reply to Youssef Samir
Quoted 10 lines · Youssef Samir

From: Youssef Samir <[email protected]>

If msg_xfer() is called and the channel ring does not have enough room to accommodate the whole message, the function sleeps and tries again. It uses retry_count to keep track of the number of retrials done. This variable is not used after the space check succeeds. So, remove the retry_count = 0 statement used later in the function.

Pushed to drm-misc-next.

-Jeff