From 175b8711f8c90e7977aec5564f5c29588fa14469 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 25 Nov 2013 09:09:34 +0100 Subject: uxa,legacy: use unsigned for comparition of unsigned Signed-off-by: Zdenek Kabelac --- src/legacy/i810/i810_common.h | 4 ++-- src/legacy/i810/i810_ring.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/legacy') diff --git a/src/legacy/i810/i810_common.h b/src/legacy/i810/i810_common.h index efa2a7d3..4cc10e8b 100644 --- a/src/legacy/i810/i810_common.h +++ b/src/legacy/i810/i810_common.h @@ -65,7 +65,7 @@ static inline void memset_volatile(volatile void *b, int c, size_t len) { - int i; + unsigned i; for (i = 0; i < len; i++) ((volatile char *)b)[i] = c; @@ -74,7 +74,7 @@ static inline void memset_volatile(volatile void *b, int c, size_t len) static inline void memcpy_volatile(volatile void *dst, const void *src, size_t len) { - int i; + unsigned i; for (i = 0; i < len; i++) ((volatile char *)dst)[i] = ((const volatile char *)src)[i]; diff --git a/src/legacy/i810/i810_ring.h b/src/legacy/i810/i810_ring.h index e6e354fd..a3be86eb 100644 --- a/src/legacy/i810/i810_ring.h +++ b/src/legacy/i810/i810_ring.h @@ -73,7 +73,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define BEGIN_LP_RING(n) \ unsigned int outring, ringmask, ringused = 0; \ volatile unsigned char *virt; \ - int needed; \ + unsigned needed; \ if ((n) & 1) \ ErrorF("BEGIN_LP_RING called with odd argument: %d\n", n); \ if ((n) > 2 && (I810_DEBUG&DEBUG_ALWAYS_SYNC)) \ -- cgit v1.2.3