Skip to content

Commit

Permalink
dn_route_rcv: remove redundant dev null check
Browse files Browse the repository at this point in the history
dev cannot be NULL here since its already being accessed
before. Remove the redundant null check.

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gaurav Singh authored and David S. Miller committed Jun 24, 2020
1 parent 0cc55e6 commit f9215d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/decnet/dn_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f9215d6

Please sign in to comment.