From: Alexander Aring Date: Thu, 28 Apr 2022 03:05:32 +0000 (-0400) Subject: net: 6lowpan: remove const from scalars X-Git-Tag: v6.6.17~6916^2~383^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb9edf4366a2364b626c000b9ac720b0c13a551c;p=platform%2Fkernel%2Flinux-rpi.git net: 6lowpan: remove const from scalars 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 Reviewed-by: Stefan Schmidt Acked-by: Jukka Rissanen Link: https://lore.kernel.org/r/20220428030534.3220410-2-aahringo@redhat.com Signed-off-by: Stefan Schmidt --- diff --git a/net/6lowpan/nhc.h b/net/6lowpan/nhc.h index 67951c4..2ac7da3 100644 --- a/net/6lowpan/nhc.h +++ b/net/6lowpan/nhc.h @@ -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);