diff options
author | 2024-11-07 14:22:03 +0000 | |
---|---|---|
committer | 2024-12-19 14:44:43 +0000 | |
commit | 082dd785e20860fcddaab815903c2e54dadd0cc7 (patch) | |
tree | 025e2d8a44b24d095ba4342813620f117dad2228 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | media: uvcvideo: Remove duplicated cap/out code (diff) | |
download | linux-rng-082dd785e20860fcddaab815903c2e54dadd0cc7.tar.xz linux-rng-082dd785e20860fcddaab815903c2e54dadd0cc7.zip |
media: uvcvideo: Refactor frame parsing code into a uvc_parse_frame function
The ftype value does not change in the while loop so we can check it
before entering the while loop. Refactoring the frame parsing code into
a dedicated uvc_parse_frame function makes this more readable.
Signed-off-by: Benoit Sevens <bsevens@google.com>
Link: https://lore.kernel.org/r/20241107142204.1182969-3-bsevens@google.com
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions