drm/bridge/tc358775: Return before displaying inappropriate error message

Function for reading from i2c device register displays error message even
if reading ends correctly. Add return to avoid falling through into
the fail label.

Signed-off-by: Jiri Vanek <jirivanek1@gmail.com>
Reviewed-by: Vinay Simha BN <simhavcs@gmail.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220615222221.1501-2-jirivanek1@gmail.com
This commit is contained in:
Jiri Vanek 2022-06-16 00:22:20 +02:00 committed by Robert Foss
parent 6456dc208e
commit 89fc846675
No known key found for this signature in database
GPG Key ID: 3EFD900F76D1D784

View File

@ -339,6 +339,7 @@ static void d2l_read(struct i2c_client *i2c, u16 addr, u32 *val)
goto fail;
pr_debug("d2l: I2C : addr:%04x value:%08x\n", addr, *val);
return;
fail:
dev_err(&i2c->dev, "Error %d reading from subaddress 0x%x\n",