diff options
| author | Marc Kleine-Budde <[email protected]> | 2021-01-17 23:06:28 +0100 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2021-01-27 10:01:46 +0100 |
| commit | 54eca60b1c94fb1de3e59a936d428a291879de8a (patch) | |
| tree | 93013bf68a858a6ce1d35f1bd8ece6d49e1a574a /tools/perf/scripts/python/sched-migration.py | |
| parent | 6fe27d68b45666381691b6a841a2adbda8c8d153 (diff) | |
can: length: can_fd_len2dlc(): make legnth calculation readable again
In commit 652562e5ff06 ("can: length: can_fd_len2dlc(): simplify length
calculcation") the readability of the code degraded and became more error
prone. To counteract this, partially convert that patch and replace open coded
values (of the original code) with proper defines.
Fixes: 652562e5ff06 ("can: length: can_fd_len2dlc(): simplify length calculcation")
Cc: Vincent MAILHOL <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions