From: Laurent Pinchart Date: Tue, 26 Jan 2016 18:11:51 +0000 (-0200) Subject: [media] v4l: mt9v032: Remove unneeded gpiod NULL check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=70829035ba7106c4052346247e30157362de6403;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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: Laurent Pinchart Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c index 58eb62f1ba21..107eb3baa11f 100644 --- a/drivers/media/i2c/mt9v032.c +++ b/drivers/media/i2c/mt9v032.c @@ -266,8 +266,7 @@ 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); + gpiod_set_value_cansleep(mt9v032->reset_gpio, 1); ret = clk_set_rate(mt9v032->clk, mt9v032->sysclk); if (ret < 0)