OSDN Git Service

media: staging: media: atomisp: Removed a superfluous else clause
authorMartiros Shakhzadyan <vrzh@vrzh.net>
Mon, 12 Apr 2021 02:35:56 +0000 (04:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 May 2021 09:36:34 +0000 (11:36 +0200)
Fixed a coding style issue.

Signed-off-by: Martiros Shakhzadyan <vrzh@vrzh.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c

index 1209492..912eada 100644 (file)
@@ -774,11 +774,11 @@ static int ov2722_s_power(struct v4l2_subdev *sd, int on)
 
        if (on == 0)
                return power_down(sd);
-       else {
-               ret = power_up(sd);
-               if (!ret)
-                       return ov2722_init(sd);
-       }
+
+       ret = power_up(sd);
+       if (!ret)
+               return ov2722_init(sd);
+
        return ret;
 }