]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net1080: Remove unused function nc_dump_ttl()
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 18 May 2017 17:57:19 +0000 (10:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 18:46:07 +0000 (14:46 -0400)
The function is not used, removing it fixes the following warning when
building with clang:

drivers/net/usb/net1080.c:271:20: error: unused function
    'nc_dump_ttl' [-Werror,-Wunused-function]

Also remove the definition of TTL_THIS, which is only used in
nc_dump_ttl()

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/net1080.c

index 4cbdb1307f3e2ed0ad850a5ab076f80aaee26ce5..3202c19df83d97f84228ea10860c7af1c31143e4 100644 (file)
@@ -264,17 +264,9 @@ static inline void nc_dump_status(struct usbnet *dev, u16 status)
  * TTL register
  */
 
-#define        TTL_THIS(ttl)   (0x00ff & ttl)
 #define        TTL_OTHER(ttl)  (0x00ff & (ttl >> 8))
 #define MK_TTL(this,other)     ((u16)(((other)<<8)|(0x00ff&(this))))
 
-static inline void nc_dump_ttl(struct usbnet *dev, u16 ttl)
-{
-       netif_dbg(dev, link, dev->net, "net1080 %s-%s ttl 0x%x this = %d, other = %d\n",
-                 dev->udev->bus->bus_name, dev->udev->devpath,
-                 ttl, TTL_THIS(ttl), TTL_OTHER(ttl));
-}
-
 /*-------------------------------------------------------------------------*/
 
 static int net1080_reset(struct usbnet *dev)
@@ -308,7 +300,6 @@ static int net1080_reset(struct usbnet *dev)
                goto done;
        }
        ttl = vp;
-       // nc_dump_ttl(dev, ttl);
 
        nc_register_write(dev, REG_TTL,
                        MK_TTL(NC_READ_TTL_MS, TTL_OTHER(ttl)) );