media: em28xx: annotate unchecked call to media_device_register()
authorNikita Zhandarovich <n.zhandarovich@fintech.ru>
Fri, 12 Jan 2024 13:42:26 +0000 (05:42 -0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 5 Feb 2024 11:57:44 +0000 (12:57 +0100)
commitfd61d77a3d28444b2635f0c8b5a2ecd6a4d94026
treea80f0a65860dd3575555dbb7468fbb698d0a6b65
parent8b9911e553e762ebbe626270ce11b008736f1848
media: em28xx: annotate unchecked call to media_device_register()

Static analyzers generate alerts for an unchecked call to
`media_device_register()`. However, in this case, the device will work
reliably without the media controller API.

Add a comment above the call to prevent future unnecessary changes.

Suggested-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Fixes: 37ecc7b1278f ("[media] em28xx: add media controller support")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/usb/em28xx/em28xx-cards.c