drm/nouveau: fix uninitialised variable warning
authorBen Skeggs <bskeggs@redhat.com>
Sun, 17 Apr 2011 22:57:51 +0000 (08:57 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 May 2011 00:50:07 +0000 (10:50 +1000)
Looks like a false positive to me, but, anyways!

Reported-by: Jimmy Rentz <jb17bsome@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_state.c

index 8771677d6c5e8a1ff3b9e8fdede033c798bad320..38ea662568c1062a6486426408ef5648265e360a 100644 (file)
@@ -498,7 +498,7 @@ nouveau_card_init(struct drm_device *dev)
 {
        struct drm_nouveau_private *dev_priv = dev->dev_private;
        struct nouveau_engine *engine;
-       int ret, e;
+       int ret, e = 0;
 
        vga_client_register(dev->pdev, dev, NULL, nouveau_vga_set_decode);
        vga_switcheroo_register_client(dev->pdev, nouveau_switcheroo_set_state,