media: staging: rkisp1: params: in stop_streaming, use list_splice_init to move the...
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Fri, 2 Oct 2020 18:42:18 +0000 (20:42 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:08 +0000 (10:31 +0100)
commitdd48134061bb0ae2c53f40d78f7672055be06b53
tree527bc1967a6aea38f1f0d4650dca34c17905e94e
parent35d1a7bbe45626a9bada329c42353e402030bc83
media: staging: rkisp1: params: in stop_streaming, use list_splice_init to move the buffers

Currently the code uses 'list_cut_position' to move the
buffers to a temporary list. Replace it with
'list_splice_init'. This is nicer since we don't need
to access params.prev. Also, replace INIT_LIST_HEAD
with the simpler LIST_HEAD.

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