[PATCH 1/4] drm/tilcdc: Fix an incorrect condition

Rob Clark robdclark at gmail.com
Sat Mar 2 07:10:30 PST 2013


On Sat, Mar 2, 2013 at 5:23 AM, Sachin Kamat <sachin.kamat at linaro.org> wrote:
> 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 at linaro.org>

Signed-off-by: Rob Clark <robdclark at gmail.com>

> ---
>  drivers/gpu/drm/tilcdc/tilcdc_drv.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
> index c5b592d..bfac582 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;
> --
> 1.7.4.1
>


More information about the dri-devel mailing list