media: atomisp: i2c: Remove a superfluous else clause in atomisp-mt9m114.c

Remove a superfluous clause in mt9m114_s_power()

Link: https://lore.kernel.org/linux-media/20210719055216.28508-1-vrzh@vrzh.net
Signed-off-by: Martiros Shakhzadyan <vrzh@vrzh.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Martiros Shakhzadyan 2021-07-19 07:52:16 +02:00 committed by Mauro Carvalho Chehab
parent a5e5ceae59
commit f83f86e726
1 changed files with 5 additions and 6 deletions

View File

@ -570,14 +570,13 @@ static int power_down(struct v4l2_subdev *sd)
static int mt9m114_s_power(struct v4l2_subdev *sd, int power)
{
if (power == 0) {
if (power == 0)
return power_down(sd);
} else {
if (power_up(sd))
return -EINVAL;
return mt9m114_init_common(sd);
}
}
/*