Commit 50171b86 authored by Yufeng Wang's avatar Yufeng Wang Committed by Jens Axboe

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: default avatarYufeng Wang <wangyufeng@kylinos.cn>
Suggested-by: default avatarDenis Efremov <efremov@linux.com>
Link: https://lore.kernel.org/r/20240319014219.7812-1-wangyufeng@kylinos.cnSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4c4ab8ae
......@@ -2787,7 +2787,6 @@ static void redo_fd_request(void)
pending = set_next_request();
spin_unlock_irq(&floppy_lock);
if (!pending) {
do_floppy = NULL;
unlock_fdc();
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment