OSDN Git Service

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)
commit0344d0d69b3360ec551581c141c6599a0dcb5f27
tree84facd45567612e8b31d068aac1daef72d58696b
parentb68edac9217ef433470f78d3fb54a769ef95a45f
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