leds: blinkm: clean up double assignment to data->i2c_addr

Currently data->i2c_addr is being assigned twice, first with the
value 0x09 and then immediately afterwards with the value 0x08.
The first assignment is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
This commit is contained in:
Colin Ian King 2019-03-30 20:37:57 +00:00 committed by Jacek Anaszewski
parent 0b6034d84b
commit 857b079b1a

View File

@ -594,7 +594,6 @@ static int blinkm_probe(struct i2c_client *client,
goto exit;
}
data->i2c_addr = 0x09;
data->i2c_addr = 0x08;
/* i2c addr - use fake addr of 0x08 initially (real is 0x09) */
data->fw_ver = 0xfe;