summaryrefslogtreecommitdiff
path: root/net/decnet
diff options
context:
space:
mode:
authorGaurav Singh <gaurav1086@gmail.com>2020-06-22 23:41:19 -0400
committerDavid S. Miller <davem@davemloft.net>2020-06-23 20:27:09 -0700
commitf9215d6bb53ae1bd2268369d77b3f0855a27ba47 (patch)
treebed8829759c3c23d6b98c35193a5ad89a20f76d8 /net/decnet
parent0cc55e694e851921667dc80972a86feb1ca331ef (diff)
downloadlwn-f9215d6bb53ae1bd2268369d77b3f0855a27ba47.tar.gz
lwn-f9215d6bb53ae1bd2268369d77b3f0855a27ba47.zip
dn_route_rcv: remove redundant dev null check
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>
Diffstat (limited to 'net/decnet')
-rw-r--r--net/decnet/dn_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 06b9983325cc..9eb7e4b62d9b 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -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) {