Messages in this thread Patch in this message | | | Date | Wed, 09 Jun 1999 14:24:28 -0400 | From | Jeff Garzik <> | Subject | [2.2.10pre3] drivers/block/floppy.c warning fix |
| |
Attached is a patch to linux/drivers/block/floppy.c that fixes an 'unused variable' warning for systems without 'fd_chose_dma_mode' defined in floppy_ready().
Jeff--- /usr/local/home/jgarzik/tmp/l22/linux/drivers/block/floppy.c Fri Mar 26 16:29:14 1999 +++ floppy.c Wed Jun 9 02:24:19 1999 @@ -1924,8 +1924,6 @@ static void floppy_ready(void) { - unsigned long flags; - CHECK_RESET; if (start_motor(floppy_ready)) return; if (fdc_dtr()) return; @@ -1945,7 +1943,7 @@ if ((raw_cmd->flags & FD_RAW_READ) || (raw_cmd->flags & FD_RAW_WRITE)) { - flags=claim_dma_lock(); + unsigned long flags = claim_dma_lock(); fd_chose_dma_mode(raw_cmd->kernel_data, raw_cmd->length); release_dma_lock(flags); | |