Skip to content

Commit

Permalink
bareudp: constify device_type declaration
Browse files Browse the repository at this point in the history
device_type may be declared as const.

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Link: https://lore.kernel.org/r/20201202122324.564918-1-jonas@norrbonn.se
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jonas Bonn authored and Jakub Kicinski committed Dec 3, 2020
1 parent db77471 commit cec8599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bareudp.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ static const struct nla_policy bareudp_policy[IFLA_BAREUDP_MAX + 1] = {
};

/* Info for udev, that this is a virtual tunnel endpoint */
static struct device_type bareudp_type = {
static const struct device_type bareudp_type = {
.name = "bareudp",
};

Expand Down

0 comments on commit cec8599

Please sign in to comment.