drm/tilcdc: Fix an incorrect condition
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 2 Mar 2013 10:23:06 +0000 (15:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 14:18:36 +0000 (07:18 -0700)
commit31c2a91a61dc997a2189e345694aa662dee09669
treef3bace362960407e50465e225dd0cec61f47c397
parentf2bc8219dfb84879ea44b0e44c3590a4449065bd
drm/tilcdc: Fix an incorrect condition

commit 9e48854c58ca9a0f39e716dcb18247bfc21e2022 upstream.

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>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/tilcdc/tilcdc_drv.c