mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
NFC: microread: Remove redundant assignment to variable err
In the case MICROREAD_CB_TYPE_READER_ALL clang reports a dead code warning. The error code assigned to variable err is already passed to async_cb(). The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Nigel Christian <nigel.l.christian@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
686e8463ff
commit
e5432cc71a
1 changed files with 0 additions and 1 deletions
|
@ -364,7 +364,6 @@ static void microread_im_transceive_cb(void *context, struct sk_buff *skb,
|
|||
case MICROREAD_CB_TYPE_READER_ALL:
|
||||
if (err == 0) {
|
||||
if (skb->len == 0) {
|
||||
err = -EPROTO;
|
||||
kfree_skb(skb);
|
||||
info->async_cb(info->async_cb_context, NULL,
|
||||
-EPROTO);
|
||||
|
|
Loading…
Reference in a new issue