drm/tilcdc: Fix an incorrect condition
Instead of checking if num_encoders is zero, it is being assigned 0. Convert the assignment to a check. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
e6637d5427
commit
9e48854c58
|
@ -75,7 +75,7 @@ static int modeset_init(struct drm_device *dev)
|
|||
mod->funcs->modeset_init(mod, dev);
|
||||
}
|
||||
|
||||
if ((priv->num_encoders = 0) || (priv->num_connectors == 0)) {
|
||||
if ((priv->num_encoders == 0) || (priv->num_connectors == 0)) {
|
||||
/* oh nos! */
|
||||
dev_err(dev->dev, "no encoders/connectors found\n");
|
||||
return -ENXIO;
|
||||
|
|
Loading…
Reference in New Issue