drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c:1319]: (style) Redundant condition
David Binderman
dcb314 at hotmail.com
Mon Mar 27 09:59:13 UTC 2017
Hello there,
linux-4.11-rc4/drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c:1319]: (style) Redundant condition: If 'EXPR == 0', the comparison 'EXPR != 1' is always true.
Source code is
if ((HDCP_STATE_INACTIVE != hdcp_ctrl->hdcp_state) ||
(HDCP_STATE_NO_AKSV == hdcp_ctrl->hdcp_state)) {
Suggest code rework.
Regards
David Binderman
More information about the dri-devel
mailing list