All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] amiga floppy: Compile failure fixes
@ 2010-09-25 11:36 Vivek Goyal
  0 siblings, 0 replies; only message in thread
From: Vivek Goyal @ 2010-09-25 11:36 UTC (permalink / raw)
  To: Jens Axboe, linux kernel mailing list; +Cc: linux-m68k

Hi Jens,

I did cross compile for m68k and noticed amiga floppy driver failed to
compile with my patch. Please find attached the fix.

I had sent same patch in original mail thread. Resending it in a separate
mail.

Thanks
Vivek


o Compile fixes for amiga floppy driver.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
---
 drivers/block/amiflop.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Index: linux-2.6-block/drivers/block/amiflop.c
===================================================================
--- linux-2.6-block.orig/drivers/block/amiflop.c	2010-09-24 16:12:19.000000000 -0400
+++ linux-2.6-block/drivers/block/amiflop.c	2010-09-24 16:13:38.000000000 -0400
@@ -1347,12 +1347,12 @@ static struct request *set_next_request(
 	if (fdc_queue == FD_MAX_UNITS)
 		fdc_queue = 0;
 
-	for(cnt = FD_MAX_UNITS; cnt > 0, cnt--) {
+	for(cnt = FD_MAX_UNITS; cnt > 0; cnt--) {
 
 		if (unit[fdc_queue].type->code == FD_NODRIVE) {
 			if (++fdc_queue == FD_MAX_UNITS)
 				fdc_queue = 0;
-			cotinue;
+			continue;
 		}
 
 		q = unit[fdc_queue].gendisk->queue;
@@ -1827,7 +1827,6 @@ static int __init amiga_floppy_probe(str
 	return 0;
 
 out_probe:
-out_queue:
 	free_irq(IRQ_AMIGA_CIAA_TB, NULL);
 out_irq2:
 	free_irq(IRQ_AMIGA_DSKBLK, NULL);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-25 11:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25 11:36 [PATCH] amiga floppy: Compile failure fixes Vivek Goyal

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.