diff options
author | Alex Dewar <alex.dewar90@gmail.com> | 2020-08-20 19:32:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-20 16:17:45 -0700 |
commit | 0eddbef6489cf98b0577a27e4334e24eceb66c28 (patch) | |
tree | 9edb09dbaa280cfdd4876d1ee2ed582723c3d877 /drivers/nfc/st-nci | |
parent | 31ac155cc1e5cdf67dce8208a3071982f5d7fbec (diff) |
nfc: st-nci: Remove unnecessary cast
In st_nci_hci_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 <alex.dewar90@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/st-nci')
-rw-r--r-- | drivers/nfc/st-nci/se.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci/se.c index f25f1ec5f9e9..807eae04c1e3 100644 --- a/drivers/nfc/st-nci/se.c +++ b/drivers/nfc/st-nci/se.c @@ -331,8 +331,7 @@ static int st_nci_hci_connectivity_event_received(struct nci_dev *ndev, 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; |