drm/nouveau: missed some braces
authorBen Skeggs <bskeggs@redhat.com>
Tue, 1 Jun 2010 22:38:19 +0000 (08:38 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Jul 2010 00:13:00 +0000 (10:13 +1000)
Luckily this had absolutely no effect whatsoever :)

Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_mem.c

index bcf7ed32cd1caa2f8cdec1c08eeb403e2070ed60..206bd1670827b1ff2d48d2c766c7cf74e70c9983 100644 (file)
@@ -367,9 +367,10 @@ nouveau_mem_detect(struct drm_device *dev)
        } else {
                dev_priv->vram_size  = nv_rd32(dev, NV04_FIFO_DATA);
                dev_priv->vram_size &= NV10_FIFO_DATA_RAM_AMOUNT_MB_MASK;
-               if (dev_priv->chipset == 0xaa || dev_priv->chipset == 0xac)
+               if (dev_priv->chipset == 0xaa || dev_priv->chipset == 0xac) {
                        dev_priv->vram_sys_base = nv_rd32(dev, 0x100e10);
                        dev_priv->vram_sys_base <<= 12;
+               }
        }
 
        NV_INFO(dev, "Detected %dMiB VRAM\n", (int)(dev_priv->vram_size >> 20));