1
0
Fork 0

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: Mike Kofron <mpkofron@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Mike Kofron 2016-09-12 14:23:31 -04:00 committed by Greg Kroah-Hartman
parent b8a7b47467
commit 8b70d6961f
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ static struct rtnl_link_stats64 *xlr_get_stats64(struct net_device *ndev,
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_stop = xlr_net_stop,
.ndo_start_xmit = xlr_net_start_xmit,