aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@kernel.org>2023-07-31 10:59:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-31 17:16:20 +0200
commitfe14cbc604af78348b5790832a5455541d572704 (patch)
tree71b9822050906a3284c48e94cc2bc0ce44f375f9 /tools/perf/scripts/python
parentmisc: ti-st: don't check for tty data == NULL (diff)
downloadlinux-fe14cbc604af78348b5790832a5455541d572704.tar.gz
linux-fe14cbc604af78348b5790832a5455541d572704.zip
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) <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230731090002.15680-2-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions