All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpu: drm/nouveau/core/engine/disp/dacnv50.c: fix var uninit issue
@ 2012-12-06 17:23 Cong Ding
  0 siblings, 0 replies; only message in thread
From: Cong Ding @ 2012-12-06 17:23 UTC (permalink / raw)
  To: David Airlie, Ben Skeggs, dri-devel, linux-kernel; +Cc: Cong Ding

the variable "ret" might be uninitialized in the "default" branch of "switch"

Signed-off-by: Cong Ding <dinggnu@gmail.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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-06 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 17:23 [PATCH] gpu: drm/nouveau/core/engine/disp/dacnv50.c: fix var uninit issue Cong Ding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.