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)
commit82a630105847d7b7657901643810542212082af6
treef9cd687f53a17daf7fe6ff71c7f1c795bfead332
parente5a9c95f9bdb8ca52ce1ee47bd04f07de0e119ae
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