fjes: remove duplicate set of flag IFF_BROADCAST
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Tue, 13 Jun 2017 12:49:49 +0000 (20:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 17:54:51 +0000 (13:54 -0400)
Remove unnecessary setting of flag IFF_BROADCAST, since ether_setup
already does this.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_main.c

index ae48c809bac9fe13b0a92e086f0a1c6a4cf6feaf..b56e07fa44a8904c477890f4947a133056935934 100644 (file)
@@ -1348,7 +1348,6 @@ static void fjes_netdev_setup(struct net_device *netdev)
        netdev->mtu = fjes_support_mtu[3];
        netdev->min_mtu = fjes_support_mtu[0];
        netdev->max_mtu = fjes_support_mtu[3];
-       netdev->flags |= IFF_BROADCAST;
        netdev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
 }