media: ov5640: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
c8dbe3181b
commit
d9ba7bd98a
@ -1524,8 +1524,7 @@ static int ov5640_restore_mode(struct ov5640_dev *sensor)
|
||||
|
||||
static void ov5640_power(struct ov5640_dev *sensor, bool enable)
|
||||
{
|
||||
if (sensor->pwdn_gpio)
|
||||
gpiod_set_value(sensor->pwdn_gpio, enable ? 0 : 1);
|
||||
gpiod_set_value(sensor->pwdn_gpio, enable ? 0 : 1);
|
||||
}
|
||||
|
||||
static void ov5640_reset(struct ov5640_dev *sensor)
|
||||
|
Reference in New Issue
Block a user