diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2010-09-25 23:23:25 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-09-25 23:23:25 -0400 |
commit | 504c6d1b44bc6e694bdba8d9a2a4e046275b5e2b (patch) | |
tree | 3dc50274aabbb2d3bcf17a9f088444a2cacea929 /drivers/block/amiflop.c | |
parent | 639e2f2aa76eefaf22078dccbbf2f3483f587aa7 (diff) |
amiga floppy: Compile failure fixes
o Compile fixes for amiga floppy driver.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block/amiflop.c')
-rw-r--r-- | drivers/block/amiflop.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index ead8b7792c52..327ed27dfe1a 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c | |||
@@ -1347,12 +1347,12 @@ static struct request *set_next_request(void) | |||
1347 | if (fdc_queue == FD_MAX_UNITS) | 1347 | if (fdc_queue == FD_MAX_UNITS) |
1348 | fdc_queue = 0; | 1348 | fdc_queue = 0; |
1349 | 1349 | ||
1350 | for(cnt = FD_MAX_UNITS; cnt > 0, cnt--) { | 1350 | for(cnt = FD_MAX_UNITS; cnt > 0; cnt--) { |
1351 | 1351 | ||
1352 | if (unit[fdc_queue].type->code == FD_NODRIVE) { | 1352 | if (unit[fdc_queue].type->code == FD_NODRIVE) { |
1353 | if (++fdc_queue == FD_MAX_UNITS) | 1353 | if (++fdc_queue == FD_MAX_UNITS) |
1354 | fdc_queue = 0; | 1354 | fdc_queue = 0; |
1355 | cotinue; | 1355 | continue; |
1356 | } | 1356 | } |
1357 | 1357 | ||
1358 | q = unit[fdc_queue].gendisk->queue; | 1358 | q = unit[fdc_queue].gendisk->queue; |
@@ -1827,7 +1827,6 @@ static int __init amiga_floppy_probe(struct platform_device *pdev) | |||
1827 | return 0; | 1827 | return 0; |
1828 | 1828 | ||
1829 | out_probe: | 1829 | out_probe: |
1830 | out_queue: | ||
1831 | free_irq(IRQ_AMIGA_CIAA_TB, NULL); | 1830 | free_irq(IRQ_AMIGA_CIAA_TB, NULL); |
1832 | out_irq2: | 1831 | out_irq2: |
1833 | free_irq(IRQ_AMIGA_DSKBLK, NULL); | 1832 | free_irq(IRQ_AMIGA_DSKBLK, NULL); |