mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
ptp: ptp_ines: Remove redundant null check
Because kfree_skb already checked NULL skb parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -644,8 +644,7 @@ static void ines_txtstamp(struct mii_timestamper *mii_ts,
|
|||||||
|
|
||||||
spin_unlock_irqrestore(&port->lock, flags);
|
spin_unlock_irqrestore(&port->lock, flags);
|
||||||
|
|
||||||
if (old_skb)
|
kfree_skb(old_skb);
|
||||||
kfree_skb(old_skb);
|
|
||||||
|
|
||||||
schedule_delayed_work(&port->ts_work, 1);
|
schedule_delayed_work(&port->ts_work, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user