]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: media: imx: fix inconsistent IS_ERR and PTR_ERR
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 17 Oct 2017 17:19:07 +0000 (13:19 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 16:11:52 +0000 (11:11 -0500)
commitbb24a78f458156e1f75eaa714fde69f361b75df2
tree147cc36ef119e539865df1476cc9c584ebc870e1
parent60e62e6635fc011978758b584c687bf2394926d3
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>
drivers/staging/media/imx/imx-media-csi.c