From: Sachin Kamat Date: Sat, 2 Mar 2013 10:23:06 +0000 (+0530) Subject: drm/tilcdc: Fix an incorrect condition X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9e48854c58ca9a0f39e716dcb18247bfc21e2022;p=linux-beck.git 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 Acked-by: Rob Clark Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index c5b592dc1970..bfac5827c9b2 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -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;