mirror of https://gitee.com/openkylin/linux.git
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: Aishwarya Ramakrishnan <aishwaryarj100@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f256356f65
commit
7ae9a4f483
|
@ -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 */
|
||||
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_put(new_skb, skb->len);
|
||||
|
|
Loading…
Reference in New Issue