media: atomisp: i2c: Remove a superfluous else clause in atomisp-mt9m114.c
authorMartiros Shakhzadyan <vrzh@vrzh.net>
Mon, 19 Jul 2021 05:52:16 +0000 (07:52 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 23 Jul 2021 07:04:03 +0000 (09:04 +0200)
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>
drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c

index 34bf92d..49f4090 100644 (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);
-       }
+       if (power_up(sd))
+               return -EINVAL;
+
+       return mt9m114_init_common(sd);
 }
 
 /*