Commit ea416e27 authored by Xu Wang's avatar Xu Wang Committed by David S. Miller

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: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca65a280
...@@ -644,7 +644,6 @@ static void ines_txtstamp(struct mii_timestamper *mii_ts, ...@@ -644,7 +644,6 @@ 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);
......
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