Skip to content

Commit

Permalink
ieee802154: 6lowpan: remove check on null
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alexaring authored and holtmann committed Sep 17, 2015
1 parent 90997af commit 2c88b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee802154/6lowpan/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2c88b52

Please sign in to comment.