diff options
author | Jiri Vanek <jirivanek1@gmail.com> | 2022-06-16 01:22:20 +0300 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2022-06-20 22:34:20 +0300 |
commit | 89fc846675537f9f6ef62271e9d60556c873d65e (patch) | |
tree | 74e83e517f5b5f48db89cdb3da6e8deccc117a4b /drivers/gpu/drm/bridge/tc358775.c | |
parent | 6456dc208e8a5803019c7fa979023c3dcea612bb (diff) | |
download | linux-89fc846675537f9f6ef62271e9d60556c873d65e.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/bridge/tc358775.c')
-rw-r--r-- | drivers/gpu/drm/bridge/tc358775.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index e5d00a6e7880..8909b820db0d 100644 --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -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", |