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.panchas...@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; } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"