Skip to contentSkip to conversation

dn_route_rcv: remove redundant dev null check

PATCH Applied Gaurav Singh 2 participants 2 messages Jun 23, 2020 – Jun 24, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dn_route_rcv: remove redundant dev null check

dev cannot be NULL here since its already being accessed before. Remove the redundant null check.

---
 net/decnet/dn_route.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/decnet/dn_route.c +1 -1
index 06b9983325cc..9eb7e4b62d9b 100644
@@ -670,7 +670,7 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type
 	if (decnet_debug_level & 1)
 		printk(KERN_DEBUG
 			"dn_route_rcv: got 0x%02x from %s [%d %d %d]\n",
-			(int)flags, (dev) ? dev->name : "???", len, skb->len,
+			(int)flags, dev->name, len, skb->len,
 			padlen);
 
 	if (flags & DN_RT_PKT_CNTL) {
Signature · 1 line
2.17.1