media: mt9m111: No need to check for the regulator
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 31 May 2019 20:11:35 +0000 (16:11 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 15:11:43 +0000 (11:11 -0400)
commit9a57d72b94869ceb29f932e95cb39f0cc156ea1f
tree9860e0aec052fd6e3c5d4417bdd42385e689001f
parent3a959dcd11a4b1f55bbb4a37d3bac685c4e106b1
media: mt9m111: No need to check for the regulator

The regulator_get() function returns a regulator when it succeeds. There's
no need to check whether the regulator is NULL later on.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/mt9m111.c