Skip to content

Commit e5432cc

Browse files
Nigel Christiandavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 686e846 commit e5432cc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/nfc/microread/microread.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ static void microread_im_transceive_cb(void *context, struct sk_buff *skb,
364364
case MICROREAD_CB_TYPE_READER_ALL:
365365
if (err == 0) {
366366
if (skb->len == 0) {
367-
err = -EPROTO;
368367
kfree_skb(skb);
369368
info->async_cb(info->async_cb_context, NULL,
370369
-EPROTO);

0 commit comments

Comments
 (0)