media: i2c: ov8865: remove unnecessary NULL check
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Mon, 12 Apr 2021 07:48:31 +0000 (09:48 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 10:02:00 +0000 (12:02 +0200)
commit45dbd70c35d6a5fec4b7b45cde75b1341ede52a2
tree9cf52026a9359bbe9122a4255addf358b9b2b915
parentcef944c8f5ae192636f53682797d62bd61859646
media: i2c: ov8865: remove unnecessary NULL check

The check on mode_index is sufficient to ensure that we have a
valid mode. Remove the explicit mode check similarly to
commit 38a50230292f ("media: i2c: ov5648: remove unnecessary NULL check")

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov8865.c