summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-03-30 23:37:57 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2019-04-02 22:03:25 +0300
commit857b079b1a43e9a1556902d8a0a1d3a6b0747d96 (patch)
tree57cdd035f46213b85b821eb6d9ab62ad27408c7a /drivers/leds
parent0b6034d84b0077e60038163e9dd683d43135ba8b (diff)
downloadlinux-857b079b1a43e9a1556902d8a0a1d3a6b0747d96.tar.xz
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>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-blinkm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c
index 851c1920b63c..11b771fb933b 100644
--- a/drivers/leds/leds-blinkm.c
+++ b/drivers/leds/leds-blinkm.c
@@ -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;