Commit 61c1baa6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

media: s5k4ecgx: delete a bogus error message

This function prints an error message on success.  I don't have the
hardware, I just noticed this while reading the code.

Fixes: 8b99312b ("[media] Add v4l2 subdev driver for S5K4ECGX sensor")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 29856308
...@@ -263,8 +263,6 @@ static int s5k4ecgx_read(struct i2c_client *client, u32 addr, u16 *val) ...@@ -263,8 +263,6 @@ static int s5k4ecgx_read(struct i2c_client *client, u32 addr, u16 *val)
ret = s5k4ecgx_i2c_write(client, REG_CMDRD_ADDRL, low); ret = s5k4ecgx_i2c_write(client, REG_CMDRD_ADDRL, low);
if (!ret) if (!ret)
ret = s5k4ecgx_i2c_read(client, REG_CMDBUF0_ADDR, val); ret = s5k4ecgx_i2c_read(client, REG_CMDBUF0_ADDR, val);
if (!ret)
dev_err(&client->dev, "Failed to execute read command\n");
return ret; return ret;
} }
......
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