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>
This commit is contained in:
parent
a907905219
commit
7fa350b475
1 changed files with 1 additions and 1 deletions
|
@ -225,8 +225,8 @@ void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd,
|
||||||
ide_hwif_t *hwif = drive->hwif;
|
ide_hwif_t *hwif = drive->hwif;
|
||||||
struct scatterlist *sg = hwif->sg_table;
|
struct scatterlist *sg = hwif->sg_table;
|
||||||
struct scatterlist *cursg = cmd->cursg;
|
struct scatterlist *cursg = cmd->cursg;
|
||||||
|
unsigned long uninitialized_var(flags);
|
||||||
struct page *page;
|
struct page *page;
|
||||||
unsigned long flags;
|
|
||||||
unsigned int offset;
|
unsigned int offset;
|
||||||
u8 *buf;
|
u8 *buf;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue