floppy: remove duplicated code in redo_fd_request()
authorYufeng Wang <wangyufeng@kylinos.cn>
Tue, 19 Mar 2024 01:42:19 +0000 (09:42 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Mar 2024 02:19:56 +0000 (20:19 -0600)
commit50171b8667733146f139c773d8f00866ceb4cee4
tree13b497150ca0b2d4bf34981f17dedf06907ace52
parent4c4ab8ae416350ce817339f239bdaaf351212f15
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>
drivers/block/floppy.c