diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-04-17 18:57:51 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-05-15 20:50:07 -0400 |
commit | eea55c89e504a4affe66367ba3ecbae16296d9ef (patch) | |
tree | 9b575d76cd4f9506d1f0dca98c5556ac3543015a /drivers/gpu/drm/nouveau | |
parent | 976661093dab143f164b81f15133724fa2a4bb86 (diff) |
drm/nouveau: fix uninitialised variable warning
Looks like a false positive to me, but, anyways!
Reported-by: Jimmy Rentz <jb17bsome@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 8771677d6c5e..38ea662568c1 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c | |||
@@ -498,7 +498,7 @@ nouveau_card_init(struct drm_device *dev) | |||
498 | { | 498 | { |
499 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 499 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
500 | struct nouveau_engine *engine; | 500 | struct nouveau_engine *engine; |
501 | int ret, e; | 501 | int ret, e = 0; |
502 | 502 | ||
503 | vga_client_register(dev->pdev, dev, NULL, nouveau_vga_set_decode); | 503 | vga_client_register(dev->pdev, dev, NULL, nouveau_vga_set_decode); |
504 | vga_switcheroo_register_client(dev->pdev, nouveau_switcheroo_set_state, | 504 | vga_switcheroo_register_client(dev->pdev, nouveau_switcheroo_set_state, |