svn commit: r249799 - head/sys/dev/drm
Eitan Adler
eadler at FreeBSD.org
Tue Apr 23 13:02:55 UTC 2013
Author: eadler
Date: Tue Apr 23 13:02:55 2013
New Revision: 249799
URL: http://svnweb.freebsd.org/changeset/base/249799
Log:
Remove always-true conditions from if statement.
PR: kern/176712
Submitted by: Hiren Panchasara <hiren.panchasara at gmail.com>
Approved by: cperciva (mentor)
Modified:
head/sys/dev/drm/mach64_dma.c
Modified: head/sys/dev/drm/mach64_dma.c
==============================================================================
--- head/sys/dev/drm/mach64_dma.c Tue Apr 23 13:02:51 2013 (r249798)
+++ head/sys/dev/drm/mach64_dma.c Tue Apr 23 13:02:55 2013 (r249799)
@@ -512,7 +512,7 @@ void mach64_dump_ring_info(drm_mach64_pr
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_ma
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;
}
More information about the svn-src-all
mailing list