Commit b9d9a993 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] fix ide-lib.c warning when compiling IDE without DMA support

From Mikael Pettersson <mikpe@csd.uu.se>.
parent da182e0f
...@@ -170,7 +170,7 @@ u8 ide_rate_filter (u8 mode, u8 speed) ...@@ -170,7 +170,7 @@ u8 ide_rate_filter (u8 mode, u8 speed)
BUG(); BUG();
return min(speed, speed_max[mode]); return min(speed, speed_max[mode]);
#else /* !CONFIG_BLK_DEV_IDEDMA */ #else /* !CONFIG_BLK_DEV_IDEDMA */
return min(speed, XFER_PIO_4); return min(speed, (u8)XFER_PIO_4);
#endif /* CONFIG_BLK_DEV_IDEDMA */ #endif /* CONFIG_BLK_DEV_IDEDMA */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment