diff options
author | eadler <eadler@FreeBSD.org> | 2013-04-23 13:02:55 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-04-23 13:02:55 +0000 |
commit | 508d56a8d79d9eb3e6b8c392d2e44167e15cf955 (patch) | |
tree | 53c93b15078436d9181ce54fc81a9282b86fab20 /sys/dev/drm/mach64_dma.c | |
parent | 5d0f1a63d8e87a9dc179285006b812dd89641be4 (diff) | |
download | FreeBSD-src-508d56a8d79d9eb3e6b8c392d2e44167e15cf955.zip FreeBSD-src-508d56a8d79d9eb3e6b8c392d2e44167e15cf955.tar.gz |
Remove always-true conditions from if statement.
PR: kern/176712
Submitted by: Hiren Panchasara <hiren.panchasara@gmail.com>
Approved by: cperciva (mentor)
Diffstat (limited to 'sys/dev/drm/mach64_dma.c')
-rw-r--r-- | sys/dev/drm/mach64_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/mach64_dma.c b/sys/dev/drm/mach64_dma.c index 4ac09e8..727ba1a 100644 --- a/sys/dev/drm/mach64_dma.c +++ b/sys/dev/drm/mach64_dma.c @@ -512,7 +512,7 @@ void mach64_dump_ring_info(drm_mach64_private_t *dev_priv) DRM_INFO("\n"); - if (ring->head >= 0 && ring->head < ring->size / sizeof(u32)) { + if (ring->head < ring->size / sizeof(u32)) { struct list_head *ptr; u32 addr = le32_to_cpu(((u32 *) ring->start)[ring->head + 1]); @@ -1276,7 +1276,7 @@ int mach64_do_dispatch_pseudo_dma(drm_mach64_private_t *dev_priv) entry = list_entry(ptr, drm_mach64_freelist_t, list); buf = entry->buf; offset = buf_addr - GETBUFADDR(buf); - if (offset >= 0 && offset < MACH64_BUFFER_SIZE) { + if (offset < MACH64_BUFFER_SIZE) { found = 1; break; } |