Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70829035 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: mt9v032: Remove unneeded gpiod NULL check



The gpiod API checks for NULL descriptors, there's no need to duplicate
the check in the driver.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent da42c3c6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -266,7 +266,6 @@ static int mt9v032_power_on(struct mt9v032 *mt9v032)
	struct regmap *map = mt9v032->regmap;
	int ret;

	if (mt9v032->reset_gpio)
	gpiod_set_value_cansleep(mt9v032->reset_gpio, 1);

	ret = clk_set_rate(mt9v032->clk, mt9v032->sysclk);