summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2021-01-11 17:19:23 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-01-14 10:43:41 +0300
commit652562e5ff06d27b9b83c8166cb71845a55607ad (patch)
treeb04614d048d1d4fdd30bd9f088d5bef3dc6f7880 /tools/perf/scripts/python/syscall-counts.py
parent1ea0a522896d0edcac9a1e071658cceaa94d00ef (diff)
downloadlinux-652562e5ff06d27b9b83c8166cb71845a55607ad.tar.xz
can: length: can_fd_len2dlc(): simplify length calculcation
If the length paramter in len2dlc() exceeds the size of the len2dlc array, we return 0xF. This is equal to the last 16 members of the array. This patch removes these members from the array, uses ARRAY_SIZE() for the length check, and returns CANFD_MAX_DLC (which is 0xf). Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Link: https://lore.kernel.org/r/20210111141930.693847-9-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions