diff options
author | Yufeng Wang <wangyufeng@kylinos.cn> | 2024-03-19 02:42:19 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-03-19 03:19:56 +0100 |
commit | 50171b8667733146f139c773d8f00866ceb4cee4 (patch) | |
tree | 13b497150ca0b2d4bf34981f17dedf06907ace52 /drivers/block/floppy.c | |
parent | block: fix mismatched kerneldoc function name (diff) | |
download | linux-50171b8667733146f139c773d8f00866ceb4cee4.tar.xz linux-50171b8667733146f139c773d8f00866ceb4cee4.zip |
floppy: remove duplicated code in redo_fd_request()
duplicated code in redo_fd_request(),
unlock_fdc() function has the same code "do_floppy = NULL" inside.
Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
Suggested-by: Denis Efremov <efremov@linux.com>
Link: https://lore.kernel.org/r/20240319014219.7812-1-wangyufeng@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r-- | drivers/block/floppy.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 1b399ec8c07d..25c9d85667f1 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -2787,7 +2787,6 @@ do_request: pending = set_next_request(); spin_unlock_irq(&floppy_lock); if (!pending) { - do_floppy = NULL; unlock_fdc(); return; } |