Trivial cleanup

This commit is contained in:
Gregory Nutt
2017-04-14 10:47:46 -06:00
parent badd36170d
commit 6004f33f61
+6 -4
View File
@@ -214,17 +214,18 @@ static int macnet_txavail(FAR struct net_driver_s *dev);
#if defined(CONFIG_NET_IGMP) || defined(CONFIG_NET_ICMPv6) #if defined(CONFIG_NET_IGMP) || defined(CONFIG_NET_ICMPv6)
static int macnet_addmac(FAR struct net_driver_s *dev, static int macnet_addmac(FAR struct net_driver_s *dev,
FAR const uint8_t *mac); FAR const uint8_t *mac);
#ifdef CONFIG_NET_IGMP #ifdef CONFIG_NET_IGMP
static int macnet_rmmac(FAR struct net_driver_s *dev, static int macnet_rmmac(FAR struct net_driver_s *dev,
FAR const uint8_t *mac); FAR const uint8_t *mac);
#endif #endif
#ifdef CONFIG_NET_ICMPv6 #ifdef CONFIG_NET_ICMPv6
static void macnet_ipv6multicast(FAR struct macnet_driver_s *priv); static void macnet_ipv6multicast(FAR struct macnet_driver_s *priv);
#endif #endif
#endif #endif
#ifdef CONFIG_NETDEV_IOCTL #ifdef CONFIG_NETDEV_IOCTL
static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd, long arg); static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd,
unsigned long arg);
#endif #endif
/**************************************************************************** /****************************************************************************
@@ -1359,7 +1360,8 @@ static void macnet_ipv6multicast(FAR struct macnet_driver_s *priv)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_NETDEV_IOCTL #ifdef CONFIG_NETDEV_IOCTL
static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd, long arg) static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd,
unsigned long arg)
{ {
FAR struct macnet_driver_s *priv = (FAR struct macnet_driver_s *)dev->d_private; FAR struct macnet_driver_s *priv = (FAR struct macnet_driver_s *)dev->d_private;
int ret = -EINVAL; int ret = -EINVAL;