mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
leds: leds-blinkm: Remove unused variable 'ret'
Function returns void anyway. Fixes the following W=1 kernel build warning(s): drivers/leds/leds-blinkm.c: In function ‘blinkm_init_hw’: drivers/leds/leds-blinkm.c:483:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Jan-Simon Moeller <jansimon.moeller@gmx.de> Cc: Pavel Machek <pavel@ucw.cz> Cc: "Jan-Simon Möller" <dl9pf@gmx.de> Cc: linux-leds@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
parent
da9c6564d5
commit
69f0027e0c
@ -480,9 +480,8 @@ static int blinkm_led_blue_set(struct led_classdev *led_cdev,
|
||||
|
||||
static void blinkm_init_hw(struct i2c_client *client)
|
||||
{
|
||||
int ret;
|
||||
ret = blinkm_transfer_hw(client, BLM_STOP_SCRIPT);
|
||||
ret = blinkm_transfer_hw(client, BLM_GO_RGB);
|
||||
blinkm_transfer_hw(client, BLM_STOP_SCRIPT);
|
||||
blinkm_transfer_hw(client, BLM_GO_RGB);
|
||||
}
|
||||
|
||||
static int blinkm_test_run(struct i2c_client *client)
|
||||
|
Loading…
Reference in New Issue
Block a user