mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside.
@ 2024-03-18  6:07 Yufeng Wang
  2024-03-18  8:34 ` Denis Efremov
  0 siblings, 1 reply; 4+ messages in thread
From: Yufeng Wang @ 2024-03-18  6:07 UTC (permalink / raw)
  To: Denis Efremov, Jens Axboe, linux-block, linux-kernel; +Cc: Yufeng Wang, stable

Cc: stable@vger.kernel.org
Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
---
 drivers/block/floppy.c | 1 -
 1 file changed, 1 deletion(-)

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 @@ static void redo_fd_request(void)
 		pending = set_next_request();
 		spin_unlock_irq(&floppy_lock);
 		if (!pending) {
-			do_floppy = NULL;
 			unlock_fdc();
 			return;
 		}
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH] floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside.
@ 2024-03-18  6:04 Yufeng Wang
  2024-03-18  8:26 ` Denis Efremov
  0 siblings, 1 reply; 4+ messages in thread
From: Yufeng Wang @ 2024-03-18  6:04 UTC (permalink / raw)
  To: Denis Efremov, Jens Axboe, linux-block, linux-kernel
  Cc: inux-kernel, Yufeng Wang, stable

Cc: stable@vger.kernel.org
Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
---
 drivers/block/floppy.c | 1 -
 1 file changed, 1 deletion(-)

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 @@ static void redo_fd_request(void)
 		pending = set_next_request();
 		spin_unlock_irq(&floppy_lock);
 		if (!pending) {
-			do_floppy = NULL;
 			unlock_fdc();
 			return;
 		}
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-18  8:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-18  6:07 [PATCH] floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside Yufeng Wang
2024-03-18  8:34 ` Denis Efremov
  -- strict thread matches above, loose matches on Subject: below --
2024-03-18  6:04 Yufeng Wang
2024-03-18  8:26 ` Denis Efremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome