media: davinci_vpfe: remove bogus vb2->state check
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 3 Jun 2018 09:00:25 +0000 (05:00 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 15:15:32 +0000 (11:15 -0400)
commit559cd0a3e4848050810d125ffba36dab1e686c9d
tree764e262da549cd8ac9f0c9cab0517f81cbbef151
parentdb6e8d57e2cd9fb77e6ceef8476912caecbd59b5
media: davinci_vpfe: remove bogus vb2->state check

There is no need to check the vb2 state in the buf_prepare
callback: it can never be wrong.

Since VB2_BUF_STATE_PREPARED will be removed in the next patch
we'll remove this unnecessary check (and use of that state) first.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/davinci_vpfe/vpfe_video.c