Re: [PATCH][next] tipc: remove redundant assignment to ret, simplify code

From: patchwork-bot+netdevbpf
Date: Fri Apr 12 2024 - 22:11:04 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 11 Apr 2024 10:17:04 +0100 you wrote:
> Variable err is being assigned a zero value and it is never read
> afterwards in either the break path or continue path, the assignment
> is redundant and can be removed. With it removed, the if statement
> can also be simplified.
>
> Cleans up clang scan warning:
> net/tipc/socket.c:3570:5: warning: Value stored to 'err' is never
> read [deadcode.DeadStores]
>
> [...]

Here is the summary with links:
- [next] tipc: remove redundant assignment to ret, simplify code
https://git.kernel.org/netdev/net-next/c/195b7fc53c6f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html