mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
media: mn88473: 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:
parent
e6ec19a25f
commit
0b25167d1c
@ -661,7 +661,6 @@ static int mn88473_probe(struct i2c_client *client,
|
|||||||
if (IS_ERR(dev->client[1])) {
|
if (IS_ERR(dev->client[1])) {
|
||||||
ret = PTR_ERR(dev->client[1]);
|
ret = PTR_ERR(dev->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;
|
||||||
}
|
}
|
||||||
dev->regmap[1] = regmap_init_i2c(dev->client[1], ®map_config);
|
dev->regmap[1] = regmap_init_i2c(dev->client[1], ®map_config);
|
||||||
@ -675,7 +674,6 @@ static int mn88473_probe(struct i2c_client *client,
|
|||||||
if (IS_ERR(dev->client[2])) {
|
if (IS_ERR(dev->client[2])) {
|
||||||
ret = PTR_ERR(dev->client[2]);
|
ret = PTR_ERR(dev->client[2]);
|
||||||
dev_err(&client->dev, "2nd I2C registration failed\n");
|
dev_err(&client->dev, "2nd I2C registration failed\n");
|
||||||
if (ret)
|
|
||||||
goto err_regmap_1_regmap_exit;
|
goto err_regmap_1_regmap_exit;
|
||||||
}
|
}
|
||||||
dev->regmap[2] = regmap_init_i2c(dev->client[2], ®map_config);
|
dev->regmap[2] = regmap_init_i2c(dev->client[2], ®map_config);
|
||||||
|
Loading…
Reference in New Issue
Block a user