Commit 127a4794 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net1080: Neaten netdev_dbg use

Remove unnecessary temporary variable and #ifdef DEBUG block.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49ae25b0
...@@ -417,12 +417,9 @@ static int net1080_rx_fixup(struct usbnet *dev, struct sk_buff *skb) ...@@ -417,12 +417,9 @@ static int net1080_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
u16 hdr_len, packet_len; u16 hdr_len, packet_len;
if (!(skb->len & 0x01)) { 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", netdev_dbg(dev->net, "rx framesize %d range %d..%d mtu %d\n",
skb->len, net->hard_header_len, dev->hard_mtu, skb->len, dev->net->hard_header_len, dev->hard_mtu,
net->mtu); dev->net->mtu);
#endif
dev->net->stats.rx_frame_errors++; dev->net->stats.rx_frame_errors++;
nc_ensure_sync(dev); nc_ensure_sync(dev);
return 0; return 0;
......
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