OSDN Git Service

floppy: cleanup: get rid of current_reqD in favor of current_drive
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Apr 2020 10:19:03 +0000 (12:19 +0200)
committerDenis Efremov <efremov@linux.com>
Tue, 12 May 2020 16:34:56 +0000 (19:34 +0300)
commit99ba6ccc7f8f362ae52ddddda2252e753329c7ec
tree8374c752de3dcb5c669c57ceb2c599ca913824d1
parent6111a4f9bb189e76cda6a306074c9746ddeef04b
floppy: cleanup: get rid of current_reqD in favor of current_drive

This macro equals -1 and is used as an alternative for current_drive when
calling reschedule_timeout(), which in turn needs to remap it. This only
adds obfuscation, let's simply use current_drive.

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