media: atomisp: Simplify atomisp_isr() and recovery_work()
authorHans de Goede <hdegoede@redhat.com>
Thu, 11 May 2023 18:53:16 +0000 (19:53 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:47:04 +0000 (14:47 +0100)
commitbcc90bb31c819a7428ecd0604ce50553371fa278
tree187f12bb46785ae905cb6df79f1ec2754533c3c6
parent3fb3cd02d25b391a507cbc480361d4d27cbdfc21
media: atomisp: Simplify atomisp_isr() and recovery_work()

Both atomisp_isr() and recovery_work() now have a combination of:

1. "if (!isp->asd.streaming) goto out;" code at the top
2. "if (sp->asd.streaming) {}" blocks in the body which are jumped over
   by the goto out.

This means that the "if (sp->asd.streaming) {}" blocks are always
executed if they are not jumped over by the goto.

Remove the unnecessary "if (sp->asd.streaming)" checks and
re-indent the code.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c