diff mbox series

floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside.

Message ID 20240318060453.18538-1-wangyufeng@kylinos.cn (mailing list archive)
State New, archived
Headers show
Series floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside. | expand

Commit Message

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

Comments

Denis Efremov (Oracle) March 18, 2024, 8:26 a.m. UTC | #1
Hello,

On 3/18/24 10:04, Yufeng Wang wrote:
> 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;
>  		}

I'll answer to the 2nd email.

Thanks,
Denis
diff mbox series

Patch

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;
 		}