no more warnings [2/3] pointer comparison in ide-lib.c
PATCH 1/1 no more warnings [2/3] pointer comparison in ide-lib.c
There's a warning in drivers/ide/ide-lib.c for comparing pointers of different types. This just casts one of the arguments to u8 to shut up the compiler.
Cheers!
-Matt
drivers/ide/ide-lib.c +1 -1
@@ -170,7 +170,7 @@ u8 ide_rate_filter (u8 mode, u8 speed)BUG ();return min (speed, speed_max[mode]);#else /* !CONFIG_BLK_DEV_IDEDMA */ -return min (speed,XFER_PIO_4 ); +return min (speed, (u8 )XFER_PIO_4 );#endif /* CONFIG_BLK_DEV_IDEDMA */ }