Commit 8b70d696 authored by Mike Kofron's avatar Mike Kofron Committed by Greg Kroah-Hartman

staging: netlogic: Make net_device_ops const

This patch fixes the checkpatch.pl warning:

WARNING: struct net_device_ops should normally be const
Signed-off-by: default avatarMike Kofron <mpkofron@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b8a7b474
...@@ -413,7 +413,7 @@ static struct rtnl_link_stats64 *xlr_get_stats64(struct net_device *ndev, ...@@ -413,7 +413,7 @@ static struct rtnl_link_stats64 *xlr_get_stats64(struct net_device *ndev,
return stats; return stats;
} }
static struct net_device_ops xlr_netdev_ops = { static const struct net_device_ops xlr_netdev_ops = {
.ndo_open = xlr_net_open, .ndo_open = xlr_net_open,
.ndo_stop = xlr_net_stop, .ndo_stop = xlr_net_stop,
.ndo_start_xmit = xlr_net_start_xmit, .ndo_start_xmit = xlr_net_start_xmit,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment