A few cosmetic changes found while making the previous commit.
[xeon-phi-kernel-module] / host / linux.c
index 94e921a..6d4ead0 100644 (file)
@@ -305,12 +305,12 @@ mic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        }
 
 #ifdef CONFIG_PCI_MSI
        }
 
 #ifdef CONFIG_PCI_MSI
-       if (mic_msi_enable){
-               for (i = 0; i < MIC_NUM_MSIX_ENTRIES; i ++)
+       if (mic_msi_enable) {
+               for (i = 0; i < MIC_NUM_MSIX_ENTRIES; i++)
                        bd_info->bi_msix_entries[i].entry = i;
                err = pci_enable_msix_exact(mic_ctx->bi_pdev, bd_info->bi_msix_entries,
                                      MIC_NUM_MSIX_ENTRIES);
                        bd_info->bi_msix_entries[i].entry = i;
                err = pci_enable_msix_exact(mic_ctx->bi_pdev, bd_info->bi_msix_entries,
                                      MIC_NUM_MSIX_ENTRIES);
-               if (err == 0 ) {
+               if (err == 0) { // Error code of zero means success.
                        // Only support 1 MSIx for now
                        err = request_irq(bd_info->bi_msix_entries[0].vector,
                                          mic_irq_isr, 0, "mic", mic_ctx);
                        // Only support 1 MSIx for now
                        err = request_irq(bd_info->bi_msix_entries[0].vector,
                                          mic_irq_isr, 0, "mic", mic_ctx);