media: pci: cx23885: replace BUG with error return
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 21 Jul 2023 08:23:42 +0000 (10:23 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 25 Jul 2023 07:24:31 +0000 (09:24 +0200)
commit2e1796fd4904fdd6062a8e4589778ea899ea0c8d
treef9ab95ae93374fc76e0d5ff49331dbe9d53f1c73
parent466ae77a8cd45fa1a0bef370ca18782a1ed5aac2
media: pci: cx23885: replace BUG with error return

It was completely unnecessary to use BUG in buffer_prepare().
Just replace it with an error return. This also fixes a smatch warning:

drivers/media/pci/cx23885/cx23885-video.c:422 buffer_prepare() error: uninitialized symbol 'ret'.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/cx23885/cx23885-video.c