media: i2c: ov9650: Fix an error message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 5 May 2021 20:20:37 +0000 (22:20 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 10:04:41 +0000 (12:04 +0200)
'ret' is known to be 0 here and printing -ENODEV wouldn't be really
helpful. So remove it from the error message.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov9650.c

index 4fe68aa..a9f13dc 100644 (file)
@@ -1479,8 +1479,8 @@ static int ov965x_detect_sensor(struct v4l2_subdev *sd)
                if (ov965x->id == OV9650_ID || ov965x->id == OV9652_ID) {
                        v4l2_info(sd, "Found OV%04X sensor\n", ov965x->id);
                } else {
-                       v4l2_err(sd, "Sensor detection failed (%04X, %d)\n",
-                                ov965x->id, ret);
+                       v4l2_err(sd, "Sensor detection failed (%04X)\n",
+                                ov965x->id);
                        ret = -ENODEV;
                }
        }