diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-02 14:21:18 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-17 13:20:02 +0200 |
commit | 2c88b5283f60d09d41b9fe03351c0d2e8eef904f (patch) | |
tree | ad86d3e0e09939d534798195673472f3b762e3a2 /net/ieee802154/6lowpan | |
parent | ieee802154: 6lowpan: register packet layer while open (diff) | |
download | linux-2c88b5283f60d09d41b9fe03351c0d2e8eef904f.tar.xz linux-2c88b5283f60d09d41b9fe03351c0d2e8eef904f.zip |
ieee802154: 6lowpan: remove check on null
This patch removes one check on null which should be already done by
checking before for ARPHRD_IEEE802154. All ARPHRD_IEEE802154 and
ARPHRD_IEEE802154_MONITOR should have wdev->ieee802154_ptr, where
ARPHRD_IEEE802154 is currently a node interface only.
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/6lowpan')
-rw-r--r-- | net/ieee802154/6lowpan/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan/core.c b/net/ieee802154/6lowpan/core.c index 5b418ce92fd8..3b7521001a9e 100644 --- a/net/ieee802154/6lowpan/core.c +++ b/net/ieee802154/6lowpan/core.c @@ -214,7 +214,7 @@ static int lowpan_device_event(struct notifier_block *unused, * also delete possible lowpan interfaces which belongs * to the wpan interface. */ - if (wdev->ieee802154_ptr && wdev->ieee802154_ptr->lowpan_dev) + if (wdev->ieee802154_ptr->lowpan_dev) lowpan_dellink(wdev->ieee802154_ptr->lowpan_dev, NULL); break; default: |