mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 03:08:15 +02:00
Whitespace and remove a dead commented line.
This commit is contained in:
parent
8e51112fe0
commit
6f88a5351c
2 changed files with 4 additions and 6 deletions
|
|
@ -45,15 +45,14 @@ paddr_t DRM(mmap)(dev_t kdev, off_t offset, int prot)
|
|||
drm_map_list_entry_t *listentry=NULL;
|
||||
drm_file_t *priv;
|
||||
|
||||
/* DRM_DEBUG("offset = 0x%x\n", offset);*/
|
||||
|
||||
priv = DRM(find_file_by_proc)(dev, DRM_CURPROC);
|
||||
if (!priv) {
|
||||
DRM_DEBUG("can't find authenticator\n");
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
if (!priv->authenticated) return DRM_ERR(EACCES);
|
||||
if (!priv->authenticated)
|
||||
return DRM_ERR(EACCES);
|
||||
|
||||
if (dev->dma
|
||||
&& offset >= 0
|
||||
|
|
|
|||
|
|
@ -45,15 +45,14 @@ paddr_t DRM(mmap)(dev_t kdev, off_t offset, int prot)
|
|||
drm_map_list_entry_t *listentry=NULL;
|
||||
drm_file_t *priv;
|
||||
|
||||
/* DRM_DEBUG("offset = 0x%x\n", offset);*/
|
||||
|
||||
priv = DRM(find_file_by_proc)(dev, DRM_CURPROC);
|
||||
if (!priv) {
|
||||
DRM_DEBUG("can't find authenticator\n");
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
if (!priv->authenticated) return DRM_ERR(EACCES);
|
||||
if (!priv->authenticated)
|
||||
return DRM_ERR(EACCES);
|
||||
|
||||
if (dev->dma
|
||||
&& offset >= 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue