vm_offset_t is unsigned, so compare of >= 0 is not needed.
Found with: Coverity Prevent(tm) CID: 2259 MFC after: 3 days
This commit is contained in:
parent
45d0290a5d
commit
a80ca4341a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user