]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: sysfs: Remove unnecessary temporary variable
authorOlliver Schinagl <oliver@schinagl.nl>
Mon, 26 Oct 2015 21:32:36 +0000 (22:32 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 10 Nov 2015 12:06:45 +0000 (13:06 +0100)
commit4884297549cb5ccf928b8da5bea7b44040a2b6b3
tree84facd45567612e8b31d068aac1daef72d58696b
parent7e2666319e7c4c1294932347ee2b1f09d62bba16
pwm: sysfs: Remove unnecessary temporary variable

Use the result of pwm_is_enabled() directly instead of storing it in a
temporary variable.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/sysfs.c