OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc55e6
)
dn_route_rcv: remove redundant dev null check
author
Gaurav Singh
<gaurav1086@gmail.com>
Tue, 23 Jun 2020 03:41:19 +0000
(23:41 -0400)
committer
David S. Miller
<davem@davemloft.net>
Wed, 24 Jun 2020 03:27:09 +0000
(20:27 -0700)
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>
net/decnet/dn_route.c
patch
|
blob
|
history
diff --git
a/net/decnet/dn_route.c
b/net/decnet/dn_route.c
index
06b9983
..
9eb7e4b
100644
(file)
--- 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) {