diff options
author | Dave Airlie <airlied@linux.ie> | 2007-05-25 15:01:51 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-10 21:58:02 -0400 |
commit | bd1b331fae2813d9f03ceee649296f02edc0b893 (patch) | |
tree | 6139f72ebae88c332c754745f3d98cbe794ae4de /drivers/char/drm/i810_dma.c | |
parent | 4eb6bf6bfb580afaf1e1a1d30cba17a078530cf4 (diff) |
drm: cleanup use of Linux list handling macros
This makes the drms use of the list handling macros a lot cleaner
and more along the lines of how they should be used and uses them
in some more places.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/i810_dma.c')
-rw-r--r-- | drivers/char/drm/i810_dma.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/drm/i810_dma.c b/drivers/char/drm/i810_dma.c index 603d17fd2d69..53b8a7931955 100644 --- a/drivers/char/drm/i810_dma.c +++ b/drivers/char/drm/i810_dma.c | |||
@@ -327,12 +327,10 @@ static int i810_dma_initialize(drm_device_t * dev, | |||
327 | drm_i810_private_t * dev_priv, | 327 | drm_i810_private_t * dev_priv, |
328 | drm_i810_init_t * init) | 328 | drm_i810_init_t * init) |
329 | { | 329 | { |
330 | struct list_head *list; | 330 | drm_map_list_t *r_list; |
331 | |||
332 | memset(dev_priv, 0, sizeof(drm_i810_private_t)); | 331 | memset(dev_priv, 0, sizeof(drm_i810_private_t)); |
333 | 332 | ||
334 | list_for_each(list, &dev->maplist->head) { | 333 | list_for_each_entry(r_list, &dev->maplist, head) { |
335 | drm_map_list_t *r_list = list_entry(list, drm_map_list_t, head); | ||
336 | if (r_list->map && | 334 | if (r_list->map && |
337 | r_list->map->type == _DRM_SHM && | 335 | r_list->map->type == _DRM_SHM && |
338 | r_list->map->flags & _DRM_CONTAINS_LOCK) { | 336 | r_list->map->flags & _DRM_CONTAINS_LOCK) { |