diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-12-10 11:24:44 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-01-20 13:22:42 +0100 |
commit | f6003f948226c87b6ce0e5130a43f7b705fe0fd8 (patch) | |
tree | 4972f98f26dbb12edad38e49a4335ae69cb58297 /drivers/ptp/idt8a340_reg.h | |
parent | fdf47ff69d61a4e77f5536ee44bd869334053cb6 (diff) | |
download | linux-f6003f948226c87b6ce0e5130a43f7b705fe0fd8.tar.bz2 |
pwm: sun4i: Narrow scope of local variable
The variable pval is only used in a single block in the function
sun4i_pwm_calculate(). So declare it in a more local scope to simplify
the function for humans and compilers.
While at it also simplify assignment to pval.
While the diffstat for this patch is negative for this patch I still
thing the advantage of having a narrower scope is beneficial.
In my compiler / .config setup (gcc 8.2.1, arm/imx_v6_v7_defconfig +
COMPILE_TEST + PWM_SUN4I) this change doesn't result in any binary
changes.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/ptp/idt8a340_reg.h')
0 files changed, 0 insertions, 0 deletions