diff options
author | Geliang Tang <geliangtang@163.com> | 2015-11-25 08:23:07 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-25 10:22:58 -0500 |
commit | 87069f4493b2101a71a92b7b9565f488a605a88f (patch) | |
tree | e7394acda8136fa7adce0f84399a2f6874c37203 | |
parent | 95150bdf78f330788f97364702920ad0602f92f3 (diff) |
drm/mm: use list_next_entry
To make the intention clearer, use list_next_entry instead of list_entry.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | include/drm/drm_mm.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index a58cc6c05cd6..fc65118e5077 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h | |||
@@ -148,8 +148,7 @@ static inline u64 drm_mm_hole_node_start(struct drm_mm_node *hole_node) | |||
148 | 148 | ||
149 | static inline u64 __drm_mm_hole_node_end(struct drm_mm_node *hole_node) | 149 | static inline u64 __drm_mm_hole_node_end(struct drm_mm_node *hole_node) |
150 | { | 150 | { |
151 | return list_entry(hole_node->node_list.next, | 151 | return list_next_entry(hole_node, node_list)->start; |
152 | struct drm_mm_node, node_list)->start; | ||
153 | } | 152 | } |
154 | 153 | ||
155 | /** | 154 | /** |