You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/08 13:40:11 UTC

[incubator-nuttx] branch master updated: drivers/net/tun.c: Eliminate unused function.

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 0efed95  drivers/net/tun.c:  Eliminate unused function.
0efed95 is described below

commit 0efed95115e12c6ddc4bc1fa29deaa88bbbd76c3
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Sun Mar 8 07:05:10 2020 -0600

    drivers/net/tun.c:  Eliminate unused function.
    
    Eliminated unused function tun_ipv6multicast().  This eliminates a warning from the build test:
    
    net/tun.c:1061:13: warning: 'tun_ipv6multicast' defined but not used [-Wunused-function]
     static void tun_ipv6multicast(FAR struct tun_device_s *priv)
                 ^~~~~~~~~~~~~~~~~
---
 drivers/net/tun.c | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index c31c7a9..005c358 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1042,28 +1042,6 @@ static int tun_rmmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac)
 #endif
 
 /****************************************************************************
- * Name: tun_ipv6multicast
- *
- * Description:
- *   Configure the IPv6 multicast MAC address.
- *
- * Input Parameters:
- *   priv - A reference to the private driver state structure
- *
- * Returned Value:
- *   OK on success; Negated errno on failure.
- *
- * Assumptions:
- *
- ****************************************************************************/
-
-#ifdef CONFIG_NET_ICMPv6
-static void tun_ipv6multicast(FAR struct tun_device_s *priv)
-{
-}
-#endif /* CONFIG_NET_ICMPv6 */
-
-/****************************************************************************
  * Name: tun_dev_init
  *
  * Description: