summaryrefslogtreecommitdiff
path: root/drivers/net/usb/net1080.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-09-20 18:10:23 +0400
committerDavid S. Miller <davem@davemloft.net>2012-09-21 06:05:22 +0400
commit127a479442790d175811547dd95241dce9812ec5 (patch)
treefce3c34515db8ea52899b8c23f9c5b33f8791d86 /drivers/net/usb/net1080.c
parent49ae25b03c8622e381e4e54d066cd4ee2dbcc3e2 (diff)
downloadlinux-127a479442790d175811547dd95241dce9812ec5.tar.xz
net1080: Neaten netdev_dbg use
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>
Diffstat (limited to 'drivers/net/usb/net1080.c')
-rw-r--r--drivers/net/usb/net1080.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/usb/net1080.c b/drivers/net/usb/net1080.c
index 29e06e1a34f4..c062a3e8295c 100644
--- a/drivers/net/usb/net1080.c
+++ b/drivers/net/usb/net1080.c
@@ -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;