Commit ce064e68 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by David S. Miller

net1080: Remove unused function nc_dump_ttl()

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: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db646cc0
...@@ -264,17 +264,9 @@ static inline void nc_dump_status(struct usbnet *dev, u16 status) ...@@ -264,17 +264,9 @@ static inline void nc_dump_status(struct usbnet *dev, u16 status)
* TTL register * TTL register
*/ */
#define TTL_THIS(ttl) (0x00ff & ttl)
#define TTL_OTHER(ttl) (0x00ff & (ttl >> 8)) #define TTL_OTHER(ttl) (0x00ff & (ttl >> 8))
#define MK_TTL(this,other) ((u16)(((other)<<8)|(0x00ff&(this)))) #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) static int net1080_reset(struct usbnet *dev)
...@@ -308,7 +300,6 @@ static int net1080_reset(struct usbnet *dev) ...@@ -308,7 +300,6 @@ static int net1080_reset(struct usbnet *dev)
goto done; goto done;
} }
ttl = vp; ttl = vp;
// nc_dump_ttl(dev, ttl);
nc_register_write(dev, REG_TTL, nc_register_write(dev, REG_TTL,
MK_TTL(NC_READ_TTL_MS, TTL_OTHER(ttl)) ); MK_TTL(NC_READ_TTL_MS, TTL_OTHER(ttl)) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment