• Olof Johansson's avatar
    leds: pwm: Remove a warning on non-DT platforms · 33fc9450
    Olof Johansson authored
    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: default avatarOlof Johansson <olof@lixom.net>
    Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
    33fc9450
leds-pwm.c 5.72 KB