aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-05-18 13:57:19 -0400
committerDavid S. Miller <davem@davemloft.net>2017-05-18 14:46:07 -0400
commitce064e68a7e1ae525cd525fac3a6901591ddae3c (patch)
tree221f2055970860aac520f6a60e49e6edb4323003
parentdb646cc0aefbc5da0b9699ed40d4402e01245f57 (diff)
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: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/usb/net1080.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/usb/net1080.c b/drivers/net/usb/net1080.c
index 4cbdb1307f3e..3202c19df83d 100644
--- a/drivers/net/usb/net1080.c
+++ b/drivers/net/usb/net1080.c
@@ -264,17 +264,9 @@ static inline void nc_dump_status(struct usbnet *dev, u16 status)
264 * TTL register 264 * TTL register
265 */ 265 */
266 266
267#define TTL_THIS(ttl) (0x00ff & ttl)
268#define TTL_OTHER(ttl) (0x00ff & (ttl >> 8)) 267#define TTL_OTHER(ttl) (0x00ff & (ttl >> 8))
269#define MK_TTL(this,other) ((u16)(((other)<<8)|(0x00ff&(this)))) 268#define MK_TTL(this,other) ((u16)(((other)<<8)|(0x00ff&(this))))
270 269
271static inline void nc_dump_ttl(struct usbnet *dev, u16 ttl)
272{
273 netif_dbg(dev, link, dev->net, "net1080 %s-%s ttl 0x%x this = %d, other = %d\n",
274 dev->udev->bus->bus_name, dev->udev->devpath,
275 ttl, TTL_THIS(ttl), TTL_OTHER(ttl));
276}
277
278/*-------------------------------------------------------------------------*/ 270/*-------------------------------------------------------------------------*/
279 271
280static int net1080_reset(struct usbnet *dev) 272static int net1080_reset(struct usbnet *dev)
@@ -308,7 +300,6 @@ static int net1080_reset(struct usbnet *dev)
308 goto done; 300 goto done;
309 } 301 }
310 ttl = vp; 302 ttl = vp;
311 // nc_dump_ttl(dev, ttl);
312 303
313 nc_register_write(dev, REG_TTL, 304 nc_register_write(dev, REG_TTL,
314 MK_TTL(NC_READ_TTL_MS, TTL_OTHER(ttl)) ); 305 MK_TTL(NC_READ_TTL_MS, TTL_OTHER(ttl)) );