media: ov5693: Simplify an error message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 15 Apr 2023 16:28:58 +0000 (18:28 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:22 +0000 (16:21 +0200)
dev_err_probe() already display the error code. There is no need to
duplicate it explicitly in the error message.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov5693.c

index 9a786ff..7f9212c 100644 (file)
@@ -404,8 +404,8 @@ static int ov5693_read_reg(struct ov5693_device *ov5693, u32 addr, u32 *value)
        ret = i2c_transfer(client->adapter, msg, 2);
        if (ret < 0)
                return dev_err_probe(&client->dev, ret,
-                                    "Failed to read register 0x%04x: %d\n",
-                                    addr & OV5693_REG_ADDR_MASK, ret);
+                                    "Failed to read register 0x%04x\n",
+                                    addr & OV5693_REG_ADDR_MASK);
 
        *value = 0;
        for (i = 0; i < len; ++i) {