[PATCH] video/hdmi: convert *_infoframe_init() functions to void
Maxime Ripard
mripard at kernel.org
Thu Aug 10 08:13:26 UTC 2023
Hi,
On Tue, Aug 08, 2023 at 11:02:45AM -0700, Nikita Zhandarovich wrote:
> Four hdmi_*_infoframe_init() functions that initialize different
> types of hdmi infoframes only return the default 0 value, contrary to
> their descriptions. Yet these functions are still unnecessarily checked
> against possible errors in case of failure.
>
> Remove redundant error checks in calls to following functions:
> - hdmi_spd_infoframe_init
> - hdmi_audio_infoframe_init
> - hdmi_vendor_infoframe_init
> - hdmi_drm_infoframe_init
> Also, convert these functions to 'void' and fix their descriptions.
I'm not sure what value it actually adds. None of them return any
errors, but very well might if we started to be a bit serious about it.
Since the error handling is already there, then I'd rather leave it
there.
> Fixes: 2c676f378edb ("[media] hdmi: added unpack and logging functions for InfoFrames")
I'm confused about that part. What does it fix exactly?
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20230810/cf238cb3/attachment.sig>
More information about the dri-devel
mailing list