accel/qaic: Remove redundant retry_count = 0 statement
Subsystems (3)
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
@@ -1079,7 +1079,6 @@ static void *msg_xfer(struct qaic_device *qdev, struct wrapper_list *wrappers, ulist_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
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 usesretry_countto keep track of the number of retrials done. This variable is not used after the space check succeeds. So, remove theretry_count= 0 statement used later in the function.Signed-off-by Youssef Samir <[email protected]>Signed-off-by Youssef Samir <[email protected]>
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 usesretry_countto keep track of the number of retrials done. This variable is not used after the space check succeeds. So, remove theretry_count= 0 statement used later in the function.Signed-off-by Youssef Samir <[email protected]>Signed-off-by Youssef Samir <[email protected]>---
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 usesretry_countto keep track of the number of retrials done. This variable is not used after the space check succeeds. So, remove theretry_count= 0 statement used later in the function.Signed-off-by Youssef Samir <[email protected]>Signed-off-by Youssef Samir <[email protected]>
Pushed to drm-misc-next.
-Jeff