From 6e680bb9670c9233319ec29287af1e8d0c584a76 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Mon, 10 Jul 2017 19:45:29 -0400 Subject: [PATCH] ieee802154: Fixes warning for unused variable --- wireless/ieee802154/mac802154_ioctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wireless/ieee802154/mac802154_ioctl.c b/wireless/ieee802154/mac802154_ioctl.c index 20ab2557fd..75269b2648 100644 --- a/wireless/ieee802154/mac802154_ioctl.c +++ b/wireless/ieee802154/mac802154_ioctl.c @@ -74,14 +74,12 @@ int mac802154_ioctl(MACHANDLE mac, int cmd, unsigned long arg) { - FAR struct ieee802154_privmac_s *priv = - (FAR struct ieee802154_privmac_s *)mac; int ret = -EINVAL; FAR union ieee802154_macarg_u *macarg = (FAR union ieee802154_macarg_u *)((uintptr_t)arg); - DEBUGASSERT(priv != NULL); + DEBUGASSERT(mac != NULL); /* Check for IOCTLs aimed at the IEEE802.15.4 MAC layer */