staging: iio: adt7316: remove useless initialization
Remove the initialization of a variable that is immediately reassigned. Signed-off-by: Alison Schofield <amsfield22@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e3f9555202
commit
8f27f7323f
|
@ -21,7 +21,7 @@
|
|||
static int adt7316_i2c_read(void *client, u8 reg, u8 *data)
|
||||
{
|
||||
struct i2c_client *cl = client;
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
ret = i2c_smbus_write_byte(cl, reg);
|
||||
if (ret < 0) {
|
||||
|
|
Loading…
Reference in New Issue