diff options
| author | Jiri Slaby <jirislaby@kernel.org> | 2023-07-31 10:59:56 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-31 17:16:20 +0200 |
| commit | fe14cbc604af78348b5790832a5455541d572704 (patch) | |
| tree | 71b9822050906a3284c48e94cc2bc0ce44f375f9 /tools/perf/scripts/python/task-analyzer.py | |
| parent | misc: ti-st: don't check for tty data == NULL (diff) | |
| download | linux-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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
