]> git.baikalelectronics.ru Git - kernel.git/commit
floppy: cleanup: do not iterate on current_fdc in DMA grab/release functions
authorWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 09:40:53 +0000 (11:40 +0200)
committerDenis Efremov <efremov@linux.com>
Tue, 12 May 2020 16:34:55 +0000 (19:34 +0300)
commit7756f829778908296634bd372a9d3f0ebdddeb1d
treef9cd687f53a17daf7fe6ff71c7f1c795bfead332
parent8b7c225391ebd3fa93c14bc107a7b84eaa338e36
floppy: cleanup: do not iterate on current_fdc in DMA grab/release functions

Both floppy_grab_irq_and_dma() and floppy_release_irq_and_dma() used to
iterate on the global variable while setting up or freeing resources.
Now that they exclusively rely on functions which take the fdc as an
argument, so let's not touch the global one anymore.

Link: https://lore.kernel.org/r/20200331094054.24441-23-w@1wt.eu
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Denis Efremov <efremov@linux.com>
drivers/block/floppy.c