drm/tilcdc: Fix an incorrect condition
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 2 Mar 2013 10:23:06 +0000 (15:53 +0530)
committerDave Airlie <airlied@redhat.com>
Wed, 24 Apr 2013 04:33:16 +0000 (14:33 +1000)
commit9e48854c58ca9a0f39e716dcb18247bfc21e2022
treefd962d841c5727de54ae5bfe1a281a88ecb4755a
parente6637d5427d2af9f3f33b95447bfc5347e5ccd85
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>
drivers/gpu/drm/tilcdc/tilcdc_drv.c