summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/drm_vm.c
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-03-20 18:35:16 +0000
committerrnoland <rnoland@FreeBSD.org>2009-03-20 18:35:16 +0000
commit0c27368296146a4850d467cf9263e9054033d8fc (patch)
tree0f0fcec193540a0ebbf264c3d84eba8867ac36d6 /sys/dev/drm/drm_vm.c
parentd58258f4be4ab1db1c0420c292f9fd7d63903e9f (diff)
downloadFreeBSD-src-0c27368296146a4850d467cf9263e9054033d8fc.zip
FreeBSD-src-0c27368296146a4850d467cf9263e9054033d8fc.tar.gz
vm_offset_t is unsigned, so compare of >= 0 is not needed.
Found with: Coverity Prevent(tm) CID: 2259 MFC after: 3 days
Diffstat (limited to 'sys/dev/drm/drm_vm.c')
-rw-r--r--sys/dev/drm/drm_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c
index e2a5338..7d5cd8d 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);
OpenPOWER on IntegriCloud