[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)
commitbd676c0c04ec94bd830b9192e2c33f2c4532278d
tree0c595846c335f879f112925e3b9f793483d7257e
parent079933dbcb02132cc48ba052882fe0a9e3b0b762
[media] v4l2-flash-led-class: remove a now unused var

commit 079933dbcb02 ("[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 079933dbcb02 ("[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