aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-09-20 10:10:23 -0400
committerDavid S. Miller <davem@davemloft.net>2012-09-20 22:05:22 -0400
commit127a479442790d175811547dd95241dce9812ec5 (patch)
treefce3c34515db8ea52899b8c23f9c5b33f8791d86 /drivers/net/usb
parent49ae25b03c8622e381e4e54d066cd4ee2dbcc3e2 (diff)
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')
-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)
417 u16 hdr_len, packet_len; 417 u16 hdr_len, packet_len;
418 418
419 if (!(skb->len & 0x01)) { 419 if (!(skb->len & 0x01)) {
420#ifdef DEBUG
421 struct net_device *net = dev->net;
422 netdev_dbg(dev->net, "rx framesize %d range %d..%d mtu %d\n", 420 netdev_dbg(dev->net, "rx framesize %d range %d..%d mtu %d\n",
423 skb->len, net->hard_header_len, dev->hard_mtu, 421 skb->len, dev->net->hard_header_len, dev->hard_mtu,
424 net->mtu); 422 dev->net->mtu);
425#endif
426 dev->net->stats.rx_frame_errors++; 423 dev->net->stats.rx_frame_errors++;
427 nc_ensure_sync(dev); 424 nc_ensure_sync(dev);
428 return 0; 425 return 0;