aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartiros Shakhzadyan <vrzh@vrzh.net>2021-07-19 07:52:16 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-07-23 09:04:03 +0200
commitf83f86e72622f46796fe5aed7fee980c543e4010 (patch)
tree3e67b641b73d1988cfa358c31d599988fd088e85
parenta5e5ceae597ba1df8a2a5720f80bf690c96805b0 (diff)
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>
-rw-r--r--drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c b/drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c
index 34bf92de2f29..49f4090856d3 100644
--- a/drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c
+++ b/drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c
@@ -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);
}
/*

Privacy Policy