Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdaef43d authored by Ramon Fried's avatar Ramon Fried Committed by Greg Kroah-Hartman
Browse files

staging: netlogic: Fix checkpatch.pl warning



This patch fixes the following checkpatch.pl warning:

WARNING: Possible unnecessary 'out of memory' message
#116: FILE: ./xlr_net.c:116:
+	if (!skb) {
+		pr_err("SKB allocation failed\n");

Signed-off-by: default avatarRamon Fried <ramon.fried@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a80f58c9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -112,10 +112,8 @@ static inline unsigned char *xlr_alloc_skb(void)

	/* skb->data is cache aligned */
	skb = alloc_skb(XLR_RX_BUF_SIZE, GFP_ATOMIC);
	if (!skb) {
		pr_err("SKB allocation failed\n");
	if (!skb)
		return NULL;
	}
	skb_data = skb->data;
	skb_put(skb, MAC_SKB_BACK_PTR_SIZE);
	skb_pull(skb, MAC_SKB_BACK_PTR_SIZE);