Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Dave Airlie
9e48854c e6637d54

+1 -1
+1 -1
drivers/gpu/drm/tilcdc/tilcdc_drv.c
··· 75 75 mod->funcs->modeset_init(mod, dev); 76 76 } 77 77 78 - if ((priv->num_encoders = 0) || (priv->num_connectors == 0)) { 78 + if ((priv->num_encoders == 0) || (priv->num_connectors == 0)) { 79 79 /* oh nos! */ 80 80 dev_err(dev->dev, "no encoders/connectors found\n"); 81 81 return -ENXIO;