Commit 7ae9a4f4 authored by Aishwarya Ramakrishnan's avatar Aishwarya Ramakrishnan Committed by David S. Miller

dpaa_eth: Fix comparing pointer to 0

Fixes coccicheck warning:
./drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:2110:30-31:
WARNING comparing pointer to 0

Avoid pointer type value compared to 0.
Signed-off-by: default avatarAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f256356f
...@@ -2107,7 +2107,7 @@ static int dpaa_a050385_wa(struct net_device *net_dev, struct sk_buff **s) ...@@ -2107,7 +2107,7 @@ static int dpaa_a050385_wa(struct net_device *net_dev, struct sk_buff **s)
/* Workaround for DPAA_A050385 requires data start to be aligned */ /* Workaround for DPAA_A050385 requires data start to be aligned */
start = PTR_ALIGN(new_skb->data, DPAA_A050385_ALIGN); start = PTR_ALIGN(new_skb->data, DPAA_A050385_ALIGN);
if (start - new_skb->data != 0) if (start - new_skb->data)
skb_reserve(new_skb, start - new_skb->data); skb_reserve(new_skb, start - new_skb->data);
skb_put(new_skb, skb->len); skb_put(new_skb, skb->len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment