media: cxd2820r: don't check retval after our own assignemt

No need to check a retval after we assigned a constant to it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Wolfram Sang 2019-06-13 12:54:17 -03:00 committed by Mauro Carvalho Chehab
parent 34925d9f01
commit ae3af6c43c

View File

@ -636,8 +636,7 @@ static int cxd2820r_probe(struct i2c_client *client,
if (IS_ERR(priv->client[1])) { if (IS_ERR(priv->client[1])) {
ret = PTR_ERR(priv->client[1]); ret = PTR_ERR(priv->client[1]);
dev_err(&client->dev, "I2C registration failed\n"); dev_err(&client->dev, "I2C registration failed\n");
if (ret) goto err_regmap_0_regmap_exit;
goto err_regmap_0_regmap_exit;
} }
priv->regmap[1] = regmap_init_i2c(priv->client[1], &regmap_config1); priv->regmap[1] = regmap_init_i2c(priv->client[1], &regmap_config1);