Skip to content

Commit 263d8d5

Browse files
committed
Docs: MSI-HOWTO: Put the `because' subordinate clause first
Signed-off-by: Michael Witten <mfwitten@gmail.com> Acked-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
1 parent 1d15afc commit 263d8d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Documentation/PCI/MSI-HOWTO.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ interrupt number and frees the previously allocated message signaled
137137
interrupt(s). The interrupt may subsequently be assigned to another
138138
device, so drivers should not cache the value of dev->irq.
139139

140-
A device driver must always call free_irq() on the interrupt(s)
141-
for which it has called request_irq() before calling this function.
140+
Before calling this function, a device driver must always call free_irq()
141+
on any interrupt for which it previously called request_irq().
142142
Failure to do so results in a BUG_ON(), leaving the device with
143143
MSI enabled and thus leaking its vector.
144144

@@ -217,8 +217,8 @@ the previously allocated message signaled interrupts. The interrupts may
217217
subsequently be assigned to another device, so drivers should not cache
218218
the value of the 'vector' elements over a call to pci_disable_msix().
219219

220-
A device driver must always call free_irq() on the interrupt(s)
221-
for which it has called request_irq() before calling this function.
220+
Before calling this function, a device driver must always call free_irq()
221+
on any interrupt for which it previously called request_irq().
222222
Failure to do so results in a BUG_ON(), leaving the device with
223223
MSI-X enabled and thus leaking its vector.
224224

0 commit comments

Comments
 (0)