projects
/
xeon-phi-kernel-module
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6b1bd4a
)
A few cosmetic changes found while making the previous commit.
author
Aaron Taylor
<ataylor@subgeniuskitty.com>
Mon, 26 Apr 2021 12:01:22 +0000
(
05:01
-0700)
committer
Aaron Taylor
<ataylor@subgeniuskitty.com>
Mon, 26 Apr 2021 12:01:22 +0000
(
05:01
-0700)
host/linux.c
patch
|
blob
|
blame
|
history
diff --git
a/host/linux.c
b/host/linux.c
index
94e921a
..
6d4ead0
100644
(file)
--- 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
}
#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);