Commit 9382b4f3 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller
Browse files

net: constify net_class



AFAICS all users of net_class take a const struct class * argument.
Therefore fully constify net_class.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Acked-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4ca78e61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2046,7 +2046,7 @@ static void net_get_ownership(const struct device *d, kuid_t *uid, kgid_t *gid)
	net_ns_get_ownership(net, uid, gid);
}

static struct class net_class __ro_after_init = {
static const struct class net_class = {
	.name = "net",
	.dev_release = netdev_release,
	.dev_groups = net_class_groups,