media: usb/dvb-usb-v2/rtl28xxu.c: clean up code to fix smatch warning
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 20 Jan 2021 08:58:38 +0000 (09:58 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 07:36:21 +0000 (08:36 +0100)
commitadd434e551f07554f093193d16a850bdf45ec236
tree51c501187bdec9b6415544eb192662baf0f9e2a6
parentdd3bca72c4db353080e3de44124d45712d73b4f4
media: usb/dvb-usb-v2/rtl28xxu.c: clean up code to fix smatch warning

Fixes this smatch warning:

drivers/media/usb/dvb-usb-v2/rtl28xxu.c:1040 rtl2832u_frontend_attach() warn: missing error code 'ret'

It is actually a bogus warning since in this particular case ret isn't
meant to be set. But by reworking the code a bit the code is actually
a lot more understandable and it fixes this warning.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c