media: staging: media: atomisp: Remove a superfluous else clause in sh_css.c
authorMartiros Shakhzadyan <vrzh@vrzh.net>
Mon, 19 Apr 2021 19:25:57 +0000 (21:25 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 19 May 2021 07:51:38 +0000 (09:51 +0200)
Remove a superfluous else clause in ia_css_pipe_check_format()

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/pci/sh_css.c

index 8484c83..4d4f030 100644 (file)
@@ -5247,11 +5247,9 @@ ia_css_pipe_check_format(struct ia_css_pipe *pipe,
                IA_CSS_ERROR("Requested format is not supported by binary");
                IA_CSS_LEAVE_ERR_PRIVATE(-EINVAL);
                return -EINVAL;
-       } else
-       {
-               IA_CSS_LEAVE_ERR_PRIVATE(0);
-               return 0;
        }
+       IA_CSS_LEAVE_ERR_PRIVATE(0);
+       return 0;
 }
 
 static int load_video_binaries(struct ia_css_pipe *pipe)