Skip to content
Commit c62b0891 authored by Hans Verkuil's avatar Hans Verkuil
Browse files

media: pci: saa7164: replace BUG with error return



It was completely unnecessary to use BUG in saa7164_s_frequency,
just return an error instead. This also solves a smatch error:

drivers/media/pci/saa7164/saa7164-encoder.c:388 saa7164_s_frequency() error: potentially dereferencing uninitialized 'tsport'.

Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 2e1796fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment