From: Alex Dewar Date: Thu, 20 Aug 2020 18:38:36 +0000 (+0100) Subject: nfc: st21nfca: Remove unnecessary cast X-Git-Tag: v5.10.7~1401^2~472 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8c931f3be8dd074bb3e5cae99a8fc8bfdc54dfb;p=platform%2Fkernel%2Flinux-rpi.git nfc: st21nfca: Remove unnecessary cast In st21nfca_connectivity_event_received(), the return value of devm_kzalloc() is unnecessarily cast from void*. Remove cast. Issue identified with Coccinelle. Signed-off-by: Alex Dewar Signed-off-by: David S. Miller --- diff --git a/drivers/nfc/st21nfca/se.c b/drivers/nfc/st21nfca/se.c index 6586378..c8bdf07 100644 --- a/drivers/nfc/st21nfca/se.c +++ b/drivers/nfc/st21nfca/se.c @@ -315,8 +315,7 @@ int st21nfca_connectivity_event_received(struct nfc_hci_dev *hdev, u8 host, skb->data[0] != NFC_EVT_TRANSACTION_AID_TAG) return -EPROTO; - transaction = (struct nfc_evt_transaction *)devm_kzalloc(dev, - skb->len - 2, GFP_KERNEL); + transaction = devm_kzalloc(dev, skb->len - 2, GFP_KERNEL); if (!transaction) return -ENOMEM;