diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-11-25 09:09:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-25 10:04:49 +0000 |
commit | 175b8711f8c90e7977aec5564f5c29588fa14469 (patch) | |
tree | 53abe75da3874fce5ba747da0dc25949d1c607fd /src/legacy | |
parent | 7b235c92bbc6c7306ffef8caac5f07448c78d956 (diff) |
uxa,legacy: use unsigned for comparition of unsigned
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
Diffstat (limited to 'src/legacy')
-rw-r--r-- | src/legacy/i810/i810_common.h | 4 | ||||
-rw-r--r-- | src/legacy/i810/i810_ring.h | 2 |
2 files changed, 3 insertions, 3 deletions
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)) \ |