summaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorNigel Christian <nigel.l.christian@gmail.com>2021-06-01 09:35:33 -0400
committerDavid S. Miller <davem@davemloft.net>2021-06-01 16:58:38 -0700
commite5432cc71ab64b10100a290b7bf32804981c9cb4 (patch)
treed241119de1d495b4edbec7c8411916fed8f878b7 /drivers/nfc
parent686e8463ff767f592f785ad00568275ec4c4d841 (diff)
downloadlinux-e5432cc71ab64b10100a290b7bf32804981c9cb4.tar.bz2
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>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/microread/microread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nfc/microread/microread.c b/drivers/nfc/microread/microread.c
index 8d3988457c58..b1d3975e8a81 100644
--- a/drivers/nfc/microread/microread.c
+++ b/drivers/nfc/microread/microread.c
@@ -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);