]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov9640: Don't check for NULL on devm_gpiod_get return values
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 6 Jun 2019 14:21:25 +0000 (10:21 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 21:54:25 +0000 (17:54 -0400)
commit8ec4162df33bdb47a260fe18d50ad18a062dd3fb
tree4b6cd010cf6c6c62285ccbcc1a0ed7f8491bd25d
parent8d03fdfdba134e0dc4c4290cb5e08cf6133be8ad
media: ov9640: Don't check for NULL on devm_gpiod_get return values

devm_gpiod_get never returns NULL; therefore it's not necessary to check
for that. PTR_ERR(NULL) also yields zero, which is confusing to smatch.

Reported-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov9640.c