diff options
author | 2020-09-22 13:33:52 +0200 | |
---|---|---|
committer | 2020-09-27 11:32:22 +0200 | |
commit | 93aaba85bc2be25d7b577931a14d8f54ba4386ee (patch) | |
tree | 92eb259ec66c853fe0f49cea73a83b5da1e32fd7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | media: staging: rkisp1: params: upon stream stop, iterate a local list to return the buffers (diff) | |
download | linux-dev-93aaba85bc2be25d7b577931a14d8f54ba4386ee.tar.xz linux-dev-93aaba85bc2be25d7b577931a14d8f54ba4386ee.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions