diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-12-26 12:26:02 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-12-26 12:26:02 +0000 |
commit | 7f8532c32b28806b9c231fb39ea80b9ab9655436 (patch) | |
tree | 219e06070f3b910672514df86e1ef22e8bbd4fd1 /sys/dev/pci/if_mcx.c | |
parent | e778da17e8861142d369067d63e2ba4919790249 (diff) |
reuse the calculated vector as the argument to pci_intr_map_msix.
doing the maths again feels error prone.
Diffstat (limited to 'sys/dev/pci/if_mcx.c')
-rw-r--r-- | sys/dev/pci/if_mcx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c index 679beb15300..e3cedad4150 100644 --- a/sys/dev/pci/if_mcx.c +++ b/sys/dev/pci/if_mcx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mcx.c,v 1.86 2020/12/26 11:59:18 dlg Exp $ */ +/* $OpenBSD: if_mcx.c,v 1.87 2020/12/26 12:26:01 dlg Exp $ */ /* * Copyright (c) 2017 David Gwynne <dlg@openbsd.org> @@ -2920,7 +2920,7 @@ mcx_attach(struct device *parent, struct device *self, void *aux) tx->tx_ifq = ifq; ifq->ifq_softc = tx; - if (pci_intr_map_msix(pa, i + 1, &ih) != 0) { + if (pci_intr_map_msix(pa, vec, &ih) != 0) { printf("%s: unable to map queue interrupt %d\n", DEVNAME(sc), i); goto teardown; |