From d6a82ff9c160acbb7db5bee2cde45818d1e8548e Mon Sep 17 00:00:00 2001 From: Leif Delgass Date: Thu, 24 Apr 2003 16:55:22 +0000 Subject: Remove unused dev->map_count. We always iterate the maplist with list_for_each() and the count is not updated or used for stats. --- linux/drm_ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drm_ioctl.h') diff --git a/linux/drm_ioctl.h b/linux/drm_ioctl.h index 9b1069a1..62d5a6e4 100644 --- a/linux/drm_ioctl.h +++ b/linux/drm_ioctl.h @@ -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; } -- cgit v1.2.3