Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xu Wang and committed by
David S. Miller
ea416e27 ca65a280

+1 -2
+1 -2
drivers/ptp/ptp_ines.c
··· 644 644 645 645 spin_unlock_irqrestore(&port->lock, flags); 646 646 647 - if (old_skb) 648 - kfree_skb(old_skb); 647 + kfree_skb(old_skb); 649 648 650 649 schedule_delayed_work(&port->ts_work, 1); 651 650 }