projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
887d219
)
staging: iio: light: tsl2x7x: remove useless initialization
author
Alison Schofield
<
[email protected]
>
Wed, 24 Feb 2016 06:18:01 +0000
(22:18 -0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 12 Mar 2016 06:09:09 +0000
(22:09 -0800)
Remove the initialization of a variable that is immediately
reassigned.
Signed-off-by: Alison Schofield <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/iio/light/tsl2x7x_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/light/tsl2x7x_core.c
b/drivers/staging/iio/light/tsl2x7x_core.c
index 2a627181a358c2802566039638479658867fc604..5f308bae41b98eb1034bfb6e50c401794290e02f 100644
(file)
--- a/
drivers/staging/iio/light/tsl2x7x_core.c
+++ b/
drivers/staging/iio/light/tsl2x7x_core.c
@@
-296,7
+296,7
@@
static const u8 device_channel_config[] = {
static int
tsl2x7x_i2c_read(struct i2c_client *client, u8 reg, u8 *val)
{
- int ret
= 0
;
+ int ret;
/* select register to write */
ret = i2c_smbus_write_byte(client, (TSL2X7X_CMD_REG | reg));