]> git.baikalelectronics.ru Git - kernel.git/commit
leds: pwm: Remove a warning on non-DT platforms
authorOlof Johansson <olof@lixom.net>
Thu, 12 Dec 2013 00:11:42 +0000 (16:11 -0800)
committerBryan Wu <cooloney@gmail.com>
Tue, 28 Jan 2014 01:28:51 +0000 (17:28 -0800)
commit2da42b2161c67272b438a39a2c01dfd597c3eb73
tree1687f2774aa295bd3675672abeedf81244baac03
parent2dda735c436d709032f68a95c557a60fa37bd02a
leds: pwm: Remove a warning on non-DT platforms

This removes a warning on non-DT-enabled platforms:

drivers/leds/leds-pwm.c: In function 'led_pwm_create_of':
drivers/leds/leds-pwm.c:88:22: warning: unused variable 'node'

Really caused by the local variable that is assigned to and then never
used. Just do away with the local var, it's not needed.

Technically this code path can never be entered without DT enabled,
since there's an earlier check about number of children in the calling
function, but the compiler can't see that.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-pwm.c