summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipvlan/ipvlan_main.c
diff options
context:
space:
mode:
authorGao Feng <fgao@ikuai8.com>2016-11-30 01:48:44 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-30 21:01:32 +0100
commit8f679ed88f8860206edddff725e2749b4cdbb0e8 (patch)
tree5868954381ad1246d23ef01a6a5092421056fb7e /drivers/net/ipvlan/ipvlan_main.c
parentethernet :mellanox :mlx5: Replace pci_pool_alloc by pci_pool_zalloc (diff)
downloadlinux-8f679ed88f8860206edddff725e2749b4cdbb0e8.tar.xz
linux-8f679ed88f8860206edddff725e2749b4cdbb0e8.zip
driver: ipvlan: Remove useless member mtu_adj of struct ipvl_dev
The mtu_adj is initialized to zero when alloc mem, there is no any assignment to mtu_adj. It is only used in ipvlan_adjust_mtu as one right value. So it is useless member of struct ipvl_dev, then remove it. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan/ipvlan_main.c')
-rw-r--r--drivers/net/ipvlan/ipvlan_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c
index ab90b22e778c..c6aa667b50cd 100644
--- a/drivers/net/ipvlan/ipvlan_main.c
+++ b/drivers/net/ipvlan/ipvlan_main.c
@@ -32,7 +32,7 @@ static const struct l3mdev_ops ipvl_l3mdev_ops = {
static void ipvlan_adjust_mtu(struct ipvl_dev *ipvlan, struct net_device *dev)
{
- ipvlan->dev->mtu = dev->mtu - ipvlan->mtu_adj;
+ ipvlan->dev->mtu = dev->mtu;
}
static int ipvlan_register_nf_hook(void)