summaryrefslogtreecommitdiff
path: root/net/batman-adv/Kconfig
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2020-12-29 11:24:21 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2021-02-06 11:22:44 +0300
commit576fb6713bc46cf3fd01f05d3ef062a6c79556c8 (patch)
tree628aef9b44ca5e9745cde8eab26d72f7c8b4266d /net/batman-adv/Kconfig
parentcfa55c6d47b1e75ccc4b950616e881f3fd07712e (diff)
downloadlinux-576fb6713bc46cf3fd01f05d3ef062a6c79556c8.tar.xz
batman-adv: Avoid sizeof on flexible structure
The batadv_dhcp_packet is used to read in parts of the DHCP packet and extract relevant information for the distributed arp table. But the structure contained the flexible member "options" which is no where used in the code. A sizeof on this kind of type would return the size of everything except the flexible member. But sparse will detect this kind of sizeof and warn with warning: using sizeof on a flexible structure This can be avoided by dropping the unused flexible member. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/Kconfig')
0 files changed, 0 insertions, 0 deletions