media: staging: media: atomisp: Refactor ia_css_stream_load()
authorMartiros Shakhzadyan <vrzh@vrzh.net>
Fri, 23 Apr 2021 16:12:29 +0000 (18:12 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 19 May 2021 07:51:38 +0000 (09:51 +0200)
commit58a328830e490c5ee512519c2e8172ecc3073445
treeb1a04e0adfecfa988c89b3ddfd4468824332f7e4
parent7796e455170efa1823457b17a292b1c65bb8c1e0
media: staging: media: atomisp: Refactor ia_css_stream_load()

Move the support check to the beginning of the function.
Change the logic to avoid multiple nesting blocks.
Move 'err' variable assignment outside of the if statement.
Remove an unnecessary check whether 'j' is zero.

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