Skip to content

Commit 7fa350b

Browse files
committed
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>
1 parent a907905 commit 7fa350b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/ide/ide-taskfile.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd,
225225
ide_hwif_t *hwif = drive->hwif;
226226
struct scatterlist *sg = hwif->sg_table;
227227
struct scatterlist *cursg = cmd->cursg;
228+
unsigned long uninitialized_var(flags);
228229
struct page *page;
229-
unsigned long flags;
230230
unsigned int offset;
231231
u8 *buf;
232232

0 commit comments

Comments
 (0)