Skip to content

Commit d1c624e

Browse files
krzkdavem330
authored andcommitted
nfc: mrvl: drop unneeded memory allocation fail messages
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]>
1 parent 270be69 commit d1c624e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/nfc/nfcmrvl/fw_dnld.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ static struct sk_buff *alloc_lc_skb(struct nfcmrvl_private *priv, uint8_t plen)
7676
struct nci_data_hdr *hdr;
7777

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

8482
hdr = skb_put(skb, NCI_DATA_HDR_SIZE);
8583
hdr->conn_id = NCI_CORE_LC_CONNID_PROP_FW_DL;

0 commit comments

Comments
 (0)