Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352468
b: refs/heads/master
c: 13f228d
h: refs/heads/master
v: v3
  • Loading branch information
Claudiu Manoil authored and David S. Miller committed Feb 14, 2013
1 parent 5f2cc9b commit 6cff762
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61db26c6454b5a0bd74ec23968b568e38ea8321a
refs/heads/master: 13f228da40cacdb3c4c23c8e1272c2ad37d1e4c0
3 changes: 0 additions & 3 deletions trunk/drivers/net/ethernet/freescale/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -2385,9 +2385,6 @@ static int gfar_change_mtu(struct net_device *dev, int new_mtu)
int oldsize = priv->rx_buffer_size;
int frame_size = new_mtu + ETH_HLEN;

if (gfar_is_vlan_on(priv))
frame_size += VLAN_HLEN;

if ((frame_size < 64) || (frame_size > JUMBO_FRAME_SIZE)) {
netif_err(priv, drv, dev, "Invalid MTU setting\n");
return -EINVAL;
Expand Down

0 comments on commit 6cff762

Please sign in to comment.