diff options
author | Xie He <xie.he.0141@gmail.com> | 2020-12-09 06:33:46 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-13 04:15:33 +0300 |
commit | 13458ffe0a953e17587f172a8e5059c243e6850a (patch) | |
tree | 93ea5e6f7b0463109485d871b22cc7d1e8a7d172 /net/x25/x25_route.c | |
parent | 0b9b241406818a871c6d25390aa487dba966d548 (diff) | |
download | linux-13458ffe0a953e17587f172a8e5059c243e6850a.tar.xz |
net: x25: Remove unimplemented X.25-over-LLC code stubs
According to the X.25 documentation, there was a plan to implement
X.25-over-802.2-LLC. It never finished but left various code stubs in the
X.25 code. At this time it is unlikely that it would ever finish so it
may be better to remove those code stubs.
Also change the documentation to make it clear that this is not a ongoing
plan anymore. Change words like "will" to "could", "would", etc.
Cc: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Link: https://lore.kernel.org/r/20201209033346.83742-1-xie.he.0141@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/x25/x25_route.c')
-rw-r--r-- | net/x25/x25_route.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/x25/x25_route.c b/net/x25/x25_route.c index ec2a39e9b3e6..9fbe4bb38d94 100644 --- a/net/x25/x25_route.c +++ b/net/x25/x25_route.c @@ -124,12 +124,7 @@ struct net_device *x25_dev_get(char *devname) { struct net_device *dev = dev_get_by_name(&init_net, devname); - if (dev && - (!(dev->flags & IFF_UP) || (dev->type != ARPHRD_X25 -#if IS_ENABLED(CONFIG_LLC) - && dev->type != ARPHRD_ETHER -#endif - ))){ + if (dev && (!(dev->flags & IFF_UP) || dev->type != ARPHRD_X25)) { dev_put(dev); dev = NULL; } |