diff options
author | David S. Miller <davem@davemloft.net> | 2009-06-23 13:16:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-07 19:42:56 +0200 |
commit | 7fa350b4754cd69c8352ef3f5d23082fbdcab0bd (patch) | |
tree | 905fa2d745d111ed3d190e679fb0b6f2f112edde /drivers/ide/ide-taskfile.c | |
parent | IDE: Save a call to PageHighMem() (diff) | |
download | linux-7fa350b4754cd69c8352ef3f5d23082fbdcab0bd.tar.xz linux-7fa350b4754cd69c8352ef3f5d23082fbdcab0bd.zip |
ide: Fix annoying warning in ide_pio_bytes().
GCC can't see that flags is only set and used when PageHighmem() is
true.
Inspired by a patch from Jean Delvare.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index 90e5c0deb0e0..3a5224cbd0f2 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c @@ -225,8 +225,8 @@ void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd, ide_hwif_t *hwif = drive->hwif; struct scatterlist *sg = hwif->sg_table; struct scatterlist *cursg = cmd->cursg; + unsigned long uninitialized_var(flags); struct page *page; - unsigned long flags; unsigned int offset; u8 *buf; |