mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
media: i2c: ov2659: Fix an error message
'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> Acked-by: Lad Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
d953e3cb4a
commit
47926106af
@ -1377,8 +1377,7 @@ static int ov2659_detect(struct v4l2_subdev *sd)
|
||||
id = OV265X_ID(pid, ver);
|
||||
if (id != OV2659_ID) {
|
||||
dev_err(&client->dev,
|
||||
"Sensor detection failed (%04X, %d)\n",
|
||||
id, ret);
|
||||
"Sensor detection failed (%04X)\n", id);
|
||||
ret = -ENODEV;
|
||||
} else {
|
||||
dev_info(&client->dev, "Found OV%04X sensor\n", id);
|
||||
|
Loading…
Reference in New Issue
Block a user