Skip to content

Commit

Permalink
nfc: mrvl: drop unneeded memory allocation fail messages
Browse files Browse the repository at this point in the history
nci_skb_alloc() already prints an error message on memory allocation
failure.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
krzk authored and davem330 committed Sep 13, 2021
1 parent 270be69 commit d1c624e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/nfc/nfcmrvl/fw_dnld.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ static struct sk_buff *alloc_lc_skb(struct nfcmrvl_private *priv, uint8_t plen)
struct nci_data_hdr *hdr;

skb = nci_skb_alloc(priv->ndev, (NCI_DATA_HDR_SIZE + plen), GFP_KERNEL);
if (!skb) {
pr_err("no memory for data\n");
if (!skb)
return NULL;
}

hdr = skb_put(skb, NCI_DATA_HDR_SIZE);
hdr->conn_id = NCI_CORE_LC_CONNID_PROP_FW_DL;
Expand Down

0 comments on commit d1c624e

Please sign in to comment.