projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db77471
)
bareudp: constify device_type declaration
author
Jonas Bonn
<jonas@norrbonn.se>
Wed, 2 Dec 2020 12:23:24 +0000
(13:23 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 3 Dec 2020 02:00:18 +0000
(18:00 -0800)
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>
drivers/net/bareudp.c
patch
|
blob
|
history
diff --git
a/drivers/net/bareudp.c
b/drivers/net/bareudp.c
index 28257bccec415f57fbd1ffc4c49a8473780d7dfa..85ebd2b7e44615e8ac7f78d2a33aba6df0cb3593 100644
(file)
--- a/
drivers/net/bareudp.c
+++ b/
drivers/net/bareudp.c
@@
-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",
};