drm/nouveau/mc: add missing braces
authorVince Hsu <vinceh@nvidia.com>
Tue, 30 Dec 2014 06:59:42 +0000 (14:59 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:15:02 +0000 (12:15 +1000)
Several braces were misplaced unintentionally. That caused the msi handling
became part of the default case of the first switch statement. So add the
missing ones.

Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/mc/base.c

index ca7cee3a314ad6ab4b3f055358c7fbee9c9aae82..25e3b9644a3f20e4595c62d4a633013f8a6c9d46 100644 (file)
@@ -124,7 +124,7 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
 
        pmc->unk260 = nouveau_mc_unk260;
 
-       if (nv_device_is_pci(device))
+       if (nv_device_is_pci(device)) {
                switch (device->pdev->device & 0x0ff0) {
                case 0x00f0:
                case 0x02e0:
@@ -138,6 +138,7 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
                        default:
                                pmc->use_msi = true;
                                break;
+                       }
                }
 
                pmc->use_msi = nouveau_boolopt(device->cfgopt, "NvMSI",