]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: staging: rkisp1: params: in the isr, return if buffer list is empty
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tue, 22 Sep 2020 11:33:52 +0000 (13:33 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 09:32:22 +0000 (11:32 +0200)
commit93aaba85bc2be25d7b577931a14d8f54ba4386ee
tree92eb259ec66c853fe0f49cea73a83b5da1e32fd7
parentb1b2715e8d616bab68ed4e22b6617601105f2947
media: staging: rkisp1: params: in the isr, return if buffer list is empty

Currently the code in the isr checks if the buffer list is not
empty before referencing a buffer and then check again if the
buffer is not NULL. Instead we can save one 'if' statement by
returning if the buffers list is empty.
Also remove non-helpful inline doc 'get one empty buffer'

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-params.c