Skip to contentSkip to conversation

mc: add missing braces

PATCH New Vince Hsu 1 participant 1 message Dec 30, 2014

lore
Share & tools
lore

Vince Hsu

author
#0 lore raw

PATCH 1/1 mc: add missing braces

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.

---
 nvkm/subdev/mc/base.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
nvkm/subdev/mc/base.c +2 -1
index ca7cee3a314a..25e3b9644a3f 100644
@@ -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",
Signature · 6 lines
1.9.1

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau