diff options
| author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-11-23 12:56:20 +0300 |
|---|---|---|
| committer | Thierry Reding <thierry.reding@gmail.com> | 2023-12-20 18:04:13 +0300 |
| commit | b0445a18d3eef36b7dc4e07a0ccb4f7178251942 (patch) | |
| tree | 71b2e2cf8eb0a127848dff0e27e4a9886bfcba34 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | 1c9a2ad84f5a7450265a2ffcdb27715dbca2b980 (diff) | |
| download | linux-b0445a18d3eef36b7dc4e07a0ccb4f7178251942.tar.xz | |
pwm: Narrow scope of struct pwm_device pointer
In the expression determining the size of the allocation for chip->pwms
it's more natural to use sizeof(*chip->pwms) than sizeof(*pwm). With
that changed, the variable pwm is only used in a for loop and its scope
can be reduced accordingly.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
