mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
4c4ab8ae41
commit
50171b8667
@ -2787,7 +2787,6 @@ do_request:
|
||||
pending = set_next_request();
|
||||
spin_unlock_irq(&floppy_lock);
|
||||
if (!pending) {
|
||||
do_floppy = NULL;
|
||||
unlock_fdc();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user