]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-flash-led-class: remove a now unused var
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Oct 2016 20:42:30 +0000 (18:42 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Oct 2016 20:51:29 +0000 (18:51 -0200)
commit01f3c1e6c8276afa25e67a25d5a422edbc609a65
tree0c595846c335f879f112925e3b9f793483d7257e
parentb0f77fd8718386288fc86d142f7ecc4c7841173a
[media] v4l2-flash-led-class: remove a now unused var

commit b0f77fd87183 ("[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 b0f77fd87183 ("[media] v4l: flash led class: Fix of_node release in probe() error path")
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-flash-led-class.c