projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f00c298
)
ieee802154: 6lowpan: make header_ops const
author
Bhumika Goyal
<bhumirks@gmail.com>
Fri, 25 Aug 2017 14:21:43 +0000
(19:51 +0530)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 25 Aug 2017 16:11:29 +0000
(18:11 +0200)
Make this const as it is only stored as a reference in a const field of
a net_device structure.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/core.c
patch
|
blob
|
history
diff --git
a/net/ieee802154/6lowpan/core.c
b/net/ieee802154/6lowpan/core.c
index
de2661c
..
974765b
100644
(file)
--- a/
net/ieee802154/6lowpan/core.c
+++ b/
net/ieee802154/6lowpan/core.c
@@
-54,7
+54,7
@@
static int open_count;
-static struct header_ops lowpan_header_ops = {
+static
const
struct header_ops lowpan_header_ops = {
.create = lowpan_header_create,
};