Skip to content

Commit

Permalink
net1080: Neaten netdev_dbg use
Browse files Browse the repository at this point in the history
Remove unnecessary temporary variable and #ifdef DEBUG block.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JoePerches authored and davem330 committed Sep 21, 2012
1 parent 49ae25b commit 127a479
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/net/usb/net1080.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 127a479

Please sign in to comment.