[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1354814636-21925-1-git-send-email-dinggnu@gmail.com>
Date: Thu, 6 Dec 2012 17:23:49 +0000
From: Cong Ding <dinggnu@...il.com>
To: David Airlie <airlied@...ux.ie>, Ben Skeggs <bskeggs@...hat.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Cc: Cong Ding <dinggnu@...il.com>
Subject: [PATCH] gpu: drm/nouveau/core/engine/disp/dacnv50.c: fix var uninit issue
the variable "ret" might be uninitialized in the "default" branch of "switch"
Signed-off-by: Cong Ding <dinggnu@...il.com>
---
drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c b/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c
index d0817d9..ae19dec 100644
--- a/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c
+++ b/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c
@@ -64,7 +64,7 @@ nv50_dac_mthd(struct nouveau_object *object, u32 mthd, void *args, u32 size)
struct nv50_disp_priv *priv = (void *)object->engine;
const u8 or = (mthd & NV50_DISP_DAC_MTHD_OR);
u32 *data = args;
- int ret;
+ int ret = 0;
if (size < sizeof(u32))
return -EINVAL;
--
1.7.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists