diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-05-11 19:53:16 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-06-09 14:47:04 +0100 |
commit | bcc90bb31c819a7428ecd0604ce50553371fa278 (patch) | |
tree | 187f12bb46785ae905cb6df79f1ec2754533c3c6 /drivers/mtd | |
parent | 3fb3cd02d25b391a507cbc480361d4d27cbdfc21 (diff) | |
download | linux-stable-bcc90bb31c819a7428ecd0604ce50553371fa278.tar.gz linux-stable-bcc90bb31c819a7428ecd0604ce50553371fa278.tar.bz2 linux-stable-bcc90bb31c819a7428ecd0604ce50553371fa278.zip |
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>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions