net/mlx4_core: Fix smatch error - possible access to a null variable
[deliverable/linux.git] / drivers / net / xen-netfront.c
index 158b5e639fc7307d5a98580cfd65ca23b9d3db8a..895355de8ac467bdc9a04646becf0f5e85e136a1 100644 (file)
@@ -1332,7 +1332,7 @@ static struct net_device *xennet_create_dev(struct xenbus_device *dev)
          */
        netdev->features |= netdev->hw_features;
 
-       SET_ETHTOOL_OPS(netdev, &xennet_ethtool_ops);
+       netdev->ethtool_ops = &xennet_ethtool_ops;
        SET_NETDEV_DEV(netdev, &dev->dev);
 
        netif_set_gso_max_size(netdev, XEN_NETIF_MAX_TX_SIZE - MAX_TCP_HEADER);
This page took 0.025864 seconds and 5 git commands to generate.