]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: nci: Remove redundant assignment to len
authorYang Li <yang.lee@linux.alibaba.com>
Tue, 1 Jun 2021 09:49:50 +0000 (17:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2021 22:52:24 +0000 (15:52 -0700)
commit7ef98548ef6b597b7eec7e0c5683a456f61dc914
treeeedc36932e41f9118ebc2fffde36d372dd15e034
parentc3a2dfd2cc84698b74b5839b5ec06687e48d4025
NFC: nci: Remove redundant assignment to len

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]

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/nfc/nci/hci.c