All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yufeng Wang <wangyufeng@kylinos.cn>
To: Denis Efremov <efremov@linux.com>, Jens Axboe <axboe@kernel.dk>,
	linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: inux-kernel@vger.kernel.org, Yufeng Wang <wangyufeng@kylinos.cn>,
	stable@vger.kernel.org
Subject: [PATCH] floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside.
Date: Mon, 18 Mar 2024 14:04:53 +0800	[thread overview]
Message-ID: <20240318060453.18538-1-wangyufeng@kylinos.cn> (raw)

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


             reply	other threads:[~2024-03-18  6:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-18  6:04 Yufeng Wang [this message]
2024-03-18  8:26 ` [PATCH] floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside Denis Efremov
2024-03-18  6:07 Yufeng Wang
2024-03-18  8:34 ` Denis Efremov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240318060453.18538-1-wangyufeng@kylinos.cn \
    --to=wangyufeng@kylinos.cn \
    --cc=axboe@kernel.dk \
    --cc=efremov@linux.com \
    --cc=inux-kernel@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.