aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2020-09-22 13:33:52 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-27 11:32:22 +0200
commit93aaba85bc2be25d7b577931a14d8f54ba4386ee (patch)
tree92eb259ec66c853fe0f49cea73a83b5da1e32fd7 /tools/perf/scripts/python/export-to-sqlite.py
parentmedia: staging: rkisp1: params: upon stream stop, iterate a local list to return the buffers (diff)
downloadlinux-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