diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-25 16:21:43 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2017-08-25 18:11:29 +0200 |
commit | 96a1c173ea6576652df8564fabc5fe95e3d82d52 (patch) | |
tree | b67f4dd78d7dc35743d2be3e39a31c13a49c2ec3 /net/ieee802154 | |
parent | ieee802154: ca8210: Fix a potential NULL pointer dereference (diff) | |
download | linux-96a1c173ea6576652df8564fabc5fe95e3d82d52.tar.xz linux-96a1c173ea6576652df8564fabc5fe95e3d82d52.zip |
ieee802154: 6lowpan: make header_ops const
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>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/6lowpan/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan/core.c b/net/ieee802154/6lowpan/core.c index de2661cd0328..974765b7d92a 100644 --- 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, }; |