Commit eb9edf43 authored by Alexander Aring's avatar Alexander Aring Committed by Stefan Schmidt
Browse files

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: default avatarAlexander Aring <aahringo@redhat.com>
Reviewed-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
Acked-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Link: https://lore.kernel.org/r/20220428030534.3220410-2-aahringo@redhat.com


Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent 0530a683
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);