aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2023-07-31 10:59:56 +0200
committerGreg Kroah-Hartman <[email protected]>2023-07-31 17:16:20 +0200
commitfe14cbc604af78348b5790832a5455541d572704 (patch)
tree71b9822050906a3284c48e94cc2bc0ce44f375f9 /tools/perf/scripts/python
parent9b5752d1a882c96c0319aebe55bbfe9ad0c9aa30 (diff)
tty: synclink_gt: convert CALC_REGADDR() macro to an inline
It makes the code more readable and less error-prone as the result is returned and not stored in a variable newly defined inside the macro. Note that cast to 'unsigned long' and back to 'void *' was eliminated as info->reg_addr is 'char *' already (so the addition is per bytes already). This nicely cleans up the callers too. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions