[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YLYvcbjuPg1JFr7/@fedora>
Date: Tue, 1 Jun 2021 09:00:33 -0400
From: Nigel Christian <nigel.l.christian@...il.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Cc: linux-nfc@...ts.01.org, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [PATCH] NFC: microread: Pass err variable to async_cb()
In the case MICROREAD_CB_TYPE_READER_ALL clang reports a dead
code warning. The error code is being directly passed to
async_cb(). Fix this by passing the err variable, which is also
done in another path.
Addresses-Coverity: ("Unused value")
Signed-off-by: Nigel Christian <nigel.l.christian@...il.com>
---
drivers/nfc/microread/microread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nfc/microread/microread.c b/drivers/nfc/microread/microread.c
index 8d3988457c58..130b0f554016 100644
--- a/drivers/nfc/microread/microread.c
+++ b/drivers/nfc/microread/microread.c
@@ -367,7 +367,7 @@ static void microread_im_transceive_cb(void *context, struct sk_buff *skb,
err = -EPROTO;
kfree_skb(skb);
info->async_cb(info->async_cb_context, NULL,
- -EPROTO);
+ err);
return;
}
--
2.31.1
Powered by blists - more mailing lists