diff mbox series

soc: ti: knav_qmss_queue: remove useless statement

Message ID 20240924132025.22046-1-alessandro.zanni87@gmail.com (mailing list archive)
State New, archived
Headers show
Series soc: ti: knav_qmss_queue: remove useless statement | expand

Commit Message

Alessandro Zanni Sept. 24, 2024, 1:20 p.m. UTC
Remove the statement "continue" at the end of the loop where it
becomes useless.

Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com>
---
 drivers/soc/ti/knav_qmss_queue.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Shuah Khan Sept. 24, 2024, 4:20 p.m. UTC | #1
On 9/24/24 07:20, Alessandro Zanni wrote:
> Remove the statement "continue" at the end of the loop where it
> becomes useless.

How did you find the problem? Change log should say how you found
it.

> 
> Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com>
> ---
>   drivers/soc/ti/knav_qmss_queue.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
> index 6c98738e548a..1cc54905b398 100644
> --- a/drivers/soc/ti/knav_qmss_queue.c
> +++ b/drivers/soc/ti/knav_qmss_queue.c
> @@ -723,7 +723,6 @@ static void kdesc_empty_pool(struct knav_pool *pool)
>   		if (!desc) {
>   			dev_dbg(pool->kdev->dev,
>   				"couldn't unmap desc, continuing\n");
> -			continue;
>   		}
>   	}
>   	WARN_ON(i != pool->num_desc);

thanks,
-- Shuah
diff mbox series

Patch

diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index 6c98738e548a..1cc54905b398 100644
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -723,7 +723,6 @@  static void kdesc_empty_pool(struct knav_pool *pool)
 		if (!desc) {
 			dev_dbg(pool->kdev->dev,
 				"couldn't unmap desc, continuing\n");
-			continue;
 		}
 	}
 	WARN_ON(i != pool->num_desc);