From ea416e277f09c4285f60a7ea741ca62719191a90 Mon Sep 17 00:00:00 2001 From: Xu Wang Date: Wed, 26 Aug 2020 03:12:51 +0000 Subject: 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 Signed-off-by: David S. Miller --- drivers/ptp/ptp_ines.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/ptp/ptp_ines.c') diff --git a/drivers/ptp/ptp_ines.c b/drivers/ptp/ptp_ines.c index d726c589edda..4700ffbdfced 100644 --- a/drivers/ptp/ptp_ines.c +++ b/drivers/ptp/ptp_ines.c @@ -644,8 +644,7 @@ static void ines_txtstamp(struct mii_timestamper *mii_ts, spin_unlock_irqrestore(&port->lock, flags); - if (old_skb) - kfree_skb(old_skb); + kfree_skb(old_skb); schedule_delayed_work(&port->ts_work, 1); } -- cgit v1.2.3