media: tuners: qt1010: replace BUG_ON with a regular error

[ Upstream commit ee630b29ea ]

BUG_ON is unnecessary here, and in addition it confuses smatch.
Replacing this with an error return help resolve this smatch
warning:

drivers/media/tuners/qt1010.c:350 qt1010_init() error: buffer overflow 'i2c_data' 34 <= 34

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Hans Verkuil 2023-07-20 08:20:51 +02:00 • committed by Greg Kroah-Hartman
commit 257092cb54