]> asedeno.scripts.mit.edu Git - linux.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)
commite14b77c3db5c97c5ef67f508cc302571163dbbca
tree4b6cd010cf6c6c62285ccbcc1a0ed7f8491bd25d
parent4ace2d28aba594e234923f55f476e97c56f6689a
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