floppy: cleanup: make check_wp() not rely on current_{fdc,drive} anymore
authorWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 09:40:50 +0000 (11:40 +0200)
committerDenis Efremov <efremov@linux.com>
Tue, 12 May 2020 16:34:55 +0000 (19:34 +0300)
commitc7af70b0fb2535ee3f7165627fc0e73b1934dbfc
tree96ceb0577a395bf834f8b48c0bb163facf086ba4
parent3631a674a2ed7233905c0a7f37f09eeb83aa4d67
floppy: cleanup: make check_wp() not rely on current_{fdc,drive} anymore

Now the fdc and drive are passed in argument so that the function does
not use current_fdc nor current_drive anymore.

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