Skip to content

Commit ea416e2

Browse files
ISCAS-Vulabdavem330
authored andcommitted
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>
1 parent ca65a28 commit ea416e2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/ptp/ptp_ines.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,7 @@ static void ines_txtstamp(struct mii_timestamper *mii_ts,
644644

645645
spin_unlock_irqrestore(&port->lock, flags);
646646

647-
if (old_skb)
648-
kfree_skb(old_skb);
647+
kfree_skb(old_skb);
649648

650649
schedule_delayed_work(&port->ts_work, 1);
651650
}

0 commit comments

Comments
 (0)