leds: blinkm: clean up double assignment to data->i2c_addr
Subsystems (3)
PATCH 1/1 leds: blinkm: clean up double assignment to data->i2c_addr
From: Colin Ian King <[email protected]>
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.
--- drivers/leds/leds-blinkm.c | 1 - 1 file changed, 1 deletion(-)
drivers/leds/leds-blinkm.c +0 -1
@@ -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 ;
Signature · 1 line
2.20.1
Quoted 7 lines · Colin King
From: Colin Ian King <[email protected]>
Currently
data->i2c_addris being assigned twice, first with the value0x09and then immediately afterwards with the value0x08. The first assignment is redundant and can be removed.Signed-off-by Colin Ian King <[email protected]>
Cheers,
-Mukesh
Quoted 16 lines
--- drivers/leds/leds-blinkm.c | 1 - 1 file changed, 1 deletion(-)drivers/leds/leds-blinkm.c +0
-1@@ -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 ;
Quoted 7 lines · Colin King
From: Colin Ian King <[email protected]>
Currently
data->i2c_addris being assigned twice, first with the value0x09and then immediately afterwards with the value0x08. The first assignment is redundant and can be removed.Signed-off-by Colin Ian King <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Jacek Anaszewski
AppliedHi Colin,
Thank you for the patch.
Quoted 17 lines · Colin King
From: Colin Ian King <[email protected]>
Currently
data->i2c_addris being assigned twice, first with the value0x09and then immediately afterwards with the value0x08. The first assignment is redundant and can be removed.Signed-off-by Colin Ian King <[email protected]>--- drivers/leds/leds-blinkm.c | 1 - 1 file changed, 1 deletion(-)drivers/leds/leds-blinkm.c +0
-0
drivers/leds/leds-blinkm.c static int blinkm_probe(struct i2c_client *client, · line 599
Quoted 7 lines
drivers/leds/leds-blinkm.c +0
-1@@ -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 ;
Applied.
Signature · 2 lines
Best regards, Jacek Anaszewski