[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164752201035.1459.5576780774534521056.git-patchwork-notify@kernel.org>
Date: Thu, 17 Mar 2022 13:00:10 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: peppe.cavallaro@...com, boon.leong.ong@...el.com,
alexandre.torgue@...s.st.com, joabreu@...opsys.com,
davem@...emloft.net, kuba@...nel.org, mcoquelin.stm32@...il.com,
netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next] net: stmmac: clean up impossible condition
Hello:
This patch was applied to netdev/net-next.git (master)
by Paolo Abeni <pabeni@...hat.com>:
On Wed, 16 Mar 2022 11:37:44 +0300 you wrote:
> This code works but it has a static checker warning:
>
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1687 init_dma_rx_desc_rings()
> warn: always true condition '(queue >= 0) => (0-u32max >= 0)'
>
> Obviously, it makes no sense to check if an unsigned int is >= 0. What
> prevents this code from being a forever loop is that later there is a
> separate check for if (queue == 0).
>
> [...]
Here is the summary with links:
- [net-next] net: stmmac: clean up impossible condition
https://git.kernel.org/netdev/net-next/c/58e06d05d43a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists