]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: 6lowpan: remove const from scalars
authorAlexander Aring <aahringo@redhat.com>
Thu, 28 Apr 2022 03:05:32 +0000 (23:05 -0400)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 9 Jun 2022 19:53:28 +0000 (21:53 +0200)
The keyword const makes no sense for scalar types inside the lowpan_nhc
structure. Most compilers will ignore it so we remove the keyword from
the scalar types.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Link: https://lore.kernel.org/r/20220428030534.3220410-2-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/6lowpan/nhc.h

index 67951c40734ba20df3724973d4997257f27e2ef7..2ac7da388c4d55ef0d9ce0fe24f4d985cc4fb054 100644 (file)
@@ -67,11 +67,11 @@ module_exit(__nhc##_exit);
 struct lowpan_nhc {
        struct rb_node  node;
        const char      *name;
-       const u8        nexthdr;
-       const size_t    nexthdrlen;
+       u8              nexthdr;
+       size_t          nexthdrlen;
        u8              *id;
        u8              *idmask;
-       const size_t    idlen;
+       size_t          idlen;
 
        void            (*idsetup)(struct lowpan_nhc *nhc);
        int             (*uncompress)(struct sk_buff *skb, size_t needed);