commit | 1698a7f1511267a0d07a783dd467eab19bf498f3 | [log] [tgz] |
---|---|---|
author | Alexandre Courbot <gnurou@gmail.com> | Thu Aug 27 14:49:46 2020 +0200 |
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | Sat Sep 26 10:18:09 2020 +0200 |
tree | c627fab53d5147922a08c0887f0741355f54bf1c | |
parent | 566463afdbc43c7744c5a1b89250fc808df03833 [diff] |
media: v4l2-mem2mem: simplify poll logic Factorize redundant checks into a single code block, remove unneeded checks (a buffer in done_list is necessarily in the DONE or ERROR state), and we end up with a much simpler version of this function. Signed-off-by: Alexandre Courbot <gnurou@gmail.com> Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>