diff options
author | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-24 16:55:22 +0000 |
---|---|---|
committer | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-24 16:55:22 +0000 |
commit | d6a82ff9c160acbb7db5bee2cde45818d1e8548e (patch) | |
tree | cf97393d3dd3ef83ff8914d32dd79d7be7b8037a /linux-core/drm_ioctl.c | |
parent | 2dc672a7908817f43391703a8341cb873fbb1543 (diff) |
Remove unused dev->map_count. We always iterate the maplist with
list_for_each() and the count is not updated or used for stats.
Diffstat (limited to 'linux-core/drm_ioctl.c')
-rw-r--r-- | linux-core/drm_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c index 9b1069a1..62d5a6e4 100644 --- a/linux-core/drm_ioctl.c +++ b/linux-core/drm_ioctl.c @@ -197,7 +197,7 @@ int DRM(getmap)( struct inode *inode, struct file *filp, idx = map.offset; down(&dev->struct_sem); - if (idx < 0 || idx >= dev->map_count) { + if (idx < 0) { up(&dev->struct_sem); return -EINVAL; } |