drm: rcar-du: Remove an unneeded NULL check

"params" can't be NULL here.  The next lines assume that we either
hit the break statement of "params->mpixelclock == ~0UL".  The
inconsistent NULL checking makes static checkers complain.  I've just
removed the test.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
This commit is contained in:
Dan Carpenter 2017-06-30 11:00:12 +03:00 committed by Laurent Pinchart
parent f4112469cd
commit 66088749c5

View file

@ -45,7 +45,7 @@ static int rcar_hdmi_phy_configure(struct dw_hdmi *hdmi,
{ {
const struct rcar_hdmi_phy_params *params = rcar_hdmi_phy_params; const struct rcar_hdmi_phy_params *params = rcar_hdmi_phy_params;
for (; params && params->mpixelclock != ~0UL; ++params) { for (; params->mpixelclock != ~0UL; ++params) {
if (mpixelclock <= params->mpixelclock) if (mpixelclock <= params->mpixelclock)
break; break;
} }