Commit 89fc8466 authored by Jiri Vanek's avatar Jiri Vanek Committed by Robert Foss

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: default avatarJiri Vanek <jirivanek1@gmail.com>
Reviewed-by: default avatarVinay Simha BN <simhavcs@gmail.com>
Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220615222221.1501-2-jirivanek1@gmail.com
parent 6456dc20
...@@ -339,6 +339,7 @@ static void d2l_read(struct i2c_client *i2c, u16 addr, u32 *val) ...@@ -339,6 +339,7 @@ static void d2l_read(struct i2c_client *i2c, u16 addr, u32 *val)
goto fail; goto fail;
pr_debug("d2l: I2C : addr:%04x value:%08x\n", addr, *val); pr_debug("d2l: I2C : addr:%04x value:%08x\n", addr, *val);
return;
fail: fail:
dev_err(&i2c->dev, "Error %d reading from subaddress 0x%x\n", dev_err(&i2c->dev, "Error %d reading from subaddress 0x%x\n",
......
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