OSDN Git Service

nfc: mrvl: drop unneeded memory allocation fail messages
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 13 Sep 2021 13:20:35 +0000 (15:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Sep 2021 13:38:32 +0000 (14:38 +0100)
nci_skb_alloc() already prints an error message on memory allocation
failure.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nfcmrvl/fw_dnld.c

index edac56b..e83f655 100644 (file)
@@ -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;