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 */