pci.c: Remove unneeded 'else'

'else' is not needed after a 'break' or 'return'.

Change-Id: I28748f0d22dc725bfd1f828459530e37153e484e
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/memtest86plus/+/33350
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/pci.c b/pci.c
index f193a94..bb4ed7f 100644
--- a/pci.c
+++ b/pci.c
@@ -130,37 +130,36 @@
 	if (cpu_id.vend_id.char_array[0] == 'A' && cpu_id.vers.bits.family == 0xF) {
 		pci_conf_type = PCI_CONF_TYPE_1;
 		return 0;
-	} else {
-		/* Check if configuration type 1 works. */
-		pci_conf_type = PCI_CONF_TYPE_1;
-		tmpCFB = inb(0xCFB);
-		outb(0x01, 0xCFB);
-		tmpCF8 = inl(0xCF8);
-		outl(0x80000000, 0xCF8);
-		if ((inl(0xCF8) == 0x80000000) && (pci_sanity_check() == 0)) {
-			outl(tmpCF8, 0xCF8);
-			outb(tmpCFB, 0xCFB);
-			return 0;
-		}
-		outl(tmpCF8, 0xCF8);
-
-		/* Check if configuration type 2 works. */
-
-		pci_conf_type = PCI_CONF_TYPE_2;
-		outb(0x00, 0xCFB);
-		outb(0x00, 0xCF8);
-		outb(0x00, 0xCFA);
-		if (inb(0xCF8) == 0x00 && inb(0xCFA) == 0x00 && (pci_sanity_check() == 0)) {
-			outb(tmpCFB, 0xCFB);
-			return 0;
-		}
-
-		outb(tmpCFB, 0xCFB);
-
-		/* Nothing worked return an error */
-		pci_conf_type = PCI_CONF_TYPE_NONE;
-		return -1;
 	}
+	/* Check if configuration type 1 works. */
+	pci_conf_type = PCI_CONF_TYPE_1;
+	tmpCFB = inb(0xCFB);
+	outb(0x01, 0xCFB);
+	tmpCF8 = inl(0xCF8);
+	outl(0x80000000, 0xCF8);
+	if ((inl(0xCF8) == 0x80000000) && (pci_sanity_check() == 0)) {
+		outl(tmpCF8, 0xCF8);
+		outb(tmpCFB, 0xCFB);
+		return 0;
+	}
+	outl(tmpCF8, 0xCF8);
+
+	/* Check if configuration type 2 works. */
+
+	pci_conf_type = PCI_CONF_TYPE_2;
+	outb(0x00, 0xCFB);
+	outb(0x00, 0xCF8);
+	outb(0x00, 0xCFA);
+	if (inb(0xCF8) == 0x00 && inb(0xCFA) == 0x00 && (pci_sanity_check() == 0)) {
+		outb(tmpCFB, 0xCFB);
+		return 0;
+	}
+
+	outb(tmpCFB, 0xCFB);
+
+	/* Nothing worked return an error */
+	pci_conf_type = PCI_CONF_TYPE_NONE;
+	return -1;
 }
 
 int pci_init(void)