Re: [PATCH] NFC: nci: Remove redundant assignment to len

From: patchwork-bot+netdevbpf
Date: Tue Jun 01 2021 - 19:00:15 EST


Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Tue, 1 Jun 2021 17:49:50 +0800 you wrote:
> Variable 'len' is set to conn_info->max_pkt_payload_len but this
> value is never read as it is overwritten with a new value later on,
> hence it is a redundant assignment and can be removed.
>
> Clean up the following clang-analyzer warning:
>
> net/nfc/nci/hci.c:164:3: warning: Value stored to 'len' is never read
> [clang-analyzer-deadcode.DeadStores]
>
> [...]

Here is the summary with links:
- NFC: nci: Remove redundant assignment to len
https://git.kernel.org/netdev/net-next/c/7cf85f8caa04

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