[PATCH] floppy typo fix

Linux Kernel Mailing List <[email protected]> Fri, 13 May 2005 13:22:15 +0000
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1518, 2005/05/13 10:22:15-03:00, [email protected]

	[PATCH] floppy typo fix
	
	just in case you release an -rc3, would you please include this typo fix
	from Jurgen Quade. I have it in my tree since 2.4.23, it's a pure copy-paste
	typo which causes the driver either to print an incomplete message or a
	seconde unexpected one. BTW, it's fixed in 2.6.



 floppy.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/block/floppy.c b/drivers/block/floppy.c
--- a/drivers/block/floppy.c	2005-05-13 12:02:39 -07:00
+++ b/drivers/block/floppy.c	2005-05-13 12:02:39 -07:00
@@ -2548,7 +2548,7 @@
 			       current_count_sectors);
 			if (CT(COMMAND) == FD_READ)
 				printk("read\n");
-			if (CT(COMMAND) == FD_READ)
+			if (CT(COMMAND) == FD_WRITE)
 				printk("write\n");
 			break;
 		}
@@ -2889,7 +2889,7 @@
 			       current_count_sectors);
 			if (CT(COMMAND) == FD_READ)
 				printk("read\n");
-			if (CT(COMMAND) == FD_READ)
+			if (CT(COMMAND) == FD_WRITE)
 				printk("write\n");
 			return 0;
 		}