Commit 9c56cbf9 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Mauro Carvalho Chehab

[media] V4L: mt9m111: fix missing return value check mt9m111_reg_clear

Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b52a851d
...@@ -250,7 +250,9 @@ static int mt9m111_reg_clear(struct i2c_client *client, const u16 reg, ...@@ -250,7 +250,9 @@ static int mt9m111_reg_clear(struct i2c_client *client, const u16 reg,
int ret; int ret;
ret = mt9m111_reg_read(client, reg); ret = mt9m111_reg_read(client, reg);
return mt9m111_reg_write(client, reg, ret & ~data); if (ret >= 0)
ret = mt9m111_reg_write(client, reg, ret & ~data);
return ret;
} }
static int mt9m111_set_context(struct mt9m111 *mt9m111, static int mt9m111_set_context(struct mt9m111 *mt9m111,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment