summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index a7e4d573..274e318a 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -333,12 +333,11 @@ static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
#define DRM_FIND_MAP(_map, _o) \
do { \
struct list_head *_list; \
- list_for_each(_list, &dev->maplist->head) { \
- drm_map_list_t *_r_list; \
- _r_list = (drm_map_list_t *)_list; \
- if(_r_list->map && \
- _r_list->map->offset == (_o)) { \
- (_map) = _r_list->map; \
+ list_for_each( _list, &dev->maplist->head ) { \
+ drm_map_list_t *_entry = (drm_map_list_t *)_list; \
+ if ( _entry->map && \
+ _entry->map->offset == (_o) ) { \
+ (_map) = _entry->map; \
break; \
} \
} \