From: Martiros Shakhzadyan Date: Mon, 19 Jul 2021 05:52:16 +0000 (+0200) Subject: media: atomisp: i2c: Remove a superfluous else clause in atomisp-mt9m114.c X-Git-Tag: v5.15-rc1~149^2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=278cc35d750c3186ac30d249c9681ff7e6d80398;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c b/drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c index 34bf92de2f29b..49f4090856d30 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); } /*