net1080: Neaten netdev_dbg use
authorJoe Perches <joe@perches.com>
Thu, 20 Sep 2012 14:10:23 +0000 (14:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 02:05:22 +0000 (22:05 -0400)
Remove unnecessary temporary variable and #ifdef DEBUG block.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/net1080.c

index 29e06e1a34f4c11d7e7538f21b3277115998eacc..c062a3e8295c12d5f69158026b3055522f0f5422 100644 (file)
@@ -417,12 +417,9 @@ static int net1080_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
        u16                     hdr_len, packet_len;
 
        if (!(skb->len & 0x01)) {
-#ifdef DEBUG
-               struct net_device       *net = dev->net;
                netdev_dbg(dev->net, "rx framesize %d range %d..%d mtu %d\n",
-                          skb->len, net->hard_header_len, dev->hard_mtu,
-                          net->mtu);
-#endif
+                          skb->len, dev->net->hard_header_len, dev->hard_mtu,
+                          dev->net->mtu);
                dev->net->stats.rx_frame_errors++;
                nc_ensure_sync(dev);
                return 0;