• Mauro Carvalho Chehab's avatar
    [media] v4l2-flash-led-class: remove a now unused var · bd676c0c
    Mauro Carvalho Chehab authored
    commit 079933db ("[media] v4l: flash led class: Fix of_node release
    in probe() error path") removed the need of an ancillary var at
    the release function, as reported by smatch:
    
    drivers/media/v4l2-core/v4l2-flash-led-class.c: In function 'v4l2_flash_release':
    drivers/media/v4l2-core/v4l2-flash-led-class.c:678:23: warning: variable 'led_cdev' set but not used [-Wunused-but-set-variable]
      struct led_classdev *led_cdev;
                           ^~~~~~~~
    
    Get rid of it.
    
    Fixes: commit 079933db ("[media] v4l: flash led class: Fix of_node release in probe() error path")
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    bd676c0c
v4l2-flash-led-class.c 19.2 KB