From: Aaron Taylor Date: Mon, 26 Apr 2021 12:01:22 +0000 (-0700) Subject: A few cosmetic changes found while making the previous commit. X-Git-Tag: first-build~24 X-Git-Url: https://git.subgeniuskitty.com/xeon-phi-kernel-module/.git/commitdiff_plain/adc1aa3a57992f74d51f8e5d4aa070759d529e92 A few cosmetic changes found while making the previous commit. --- diff --git a/host/linux.c b/host/linux.c index 94e921a..6d4ead0 100644 --- a/host/linux.c +++ b/host/linux.c @@ -305,12 +305,12 @@ mic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) } #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); - 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);