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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Rob Clark <robdclark@xxxxxxxxx>

> ---
>  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
>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux