mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-14 20:14:34 +07:00
media: staging: media: imx: fix inconsistent IS_ERR and PTR_ERR
Fix inconsistent IS_ERR and PTR_ERR in csi_link_validate. The proper pointer to be passed as argument is sensor. This issue was detected with the help of Coccinelle. Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
c8959a39fd
commit
13109fbc78
@ -989,7 +989,7 @@ static int csi_link_validate(struct v4l2_subdev *sd,
|
||||
sensor = __imx_media_find_sensor(priv->md, &priv->sd.entity);
|
||||
if (IS_ERR(sensor)) {
|
||||
v4l2_err(&priv->sd, "no sensor attached\n");
|
||||
return PTR_ERR(priv->sensor);
|
||||
return PTR_ERR(sensor);
|
||||
}
|
||||
|
||||
mutex_lock(&priv->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user