From a80ca4341a57f1346d99e45d7055ce76b24b4de3 Mon Sep 17 00:00:00 2001 From: Robert Noland Date: Fri, 20 Mar 2009 18:35:16 +0000 Subject: [PATCH] vm_offset_t is unsigned, so compare of >= 0 is not needed. Found with: Coverity Prevent(tm) CID: 2259 MFC after: 3 days --- sys/dev/drm/drm_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c index e2a53380728f..7d5cd8d9963d 100644 --- a/sys/dev/drm/drm_vm.c +++ b/sys/dev/drm/drm_vm.c @@ -54,7 +54,7 @@ int drm_mmap(struct cdev *kdev, vm_offset_t offset, vm_paddr_t *paddr, if (file_priv && !file_priv->authenticated) return EACCES; - if (dev->dma && offset >= 0 && offset < ptoa(dev->dma->page_count)) { + if (dev->dma && offset < ptoa(dev->dma->page_count)) { drm_device_dma_t *dma = dev->dma; DRM_SPINLOCK(&dev->dma_lock);