Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent b52a851d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -250,7 +250,9 @@ static int mt9m111_reg_clear(struct i2c_client *client, const u16 reg,
	int ret;

	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,