Skip to content

Commit 50171b8

Browse files
Yufeng Wangaxboe
authored andcommitted
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>
1 parent 4c4ab8a commit 50171b8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/block/floppy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2787,7 +2787,6 @@ static void redo_fd_request(void)
27872787
pending = set_next_request();
27882788
spin_unlock_irq(&floppy_lock);
27892789
if (!pending) {
2790-
do_floppy = NULL;
27912790
unlock_fdc();
27922791
return;
27932792
}

0 commit comments

Comments
 (0)