aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorÍñigo Huguet <[email protected]>2021-05-11 09:02:58 +0200
committerKalle Valo <[email protected]>2021-06-15 13:40:15 +0300
commitc0277e25d28fc534c09e140c19d5b85f9e7f86fd (patch)
tree8014b4640e2640b42bad701d23d0d15c1cf7df5a /tools/testing/selftests/bpf/prog_tests/autoload.c
parent885f256f61f958d494ffdf5084a292808f08daee (diff)
brcmsmac: improve readability on addresses copy
A static analyzer identified as a potential bug the copy of 12 bytes from a 6 bytes array to a 6 bytes array. Both arrays are 6 bytes addresses. Although not being a real bug, it is not immediately clear why is done this way: next 6 bytes address, contiguous to the first one, must also be copied to next contiguous 6 bytes address of the destination. Copying each one separately will make both static analyzers and reviewers happier. Signed-off-by: Íñigo Huguet <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions