Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fa350b4 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent a9079052
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;