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:
parent
a5e5ceae59
commit
f83f86e726
|
@ -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);
|
||||
}
|
||||
if (power_up(sd))
|
||||
return -EINVAL;
|
||||
|
||||
return mt9m114_init_common(sd);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue