]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/mm: use list_next_entry
authorGeliang Tang <geliangtang@163.com>
Wed, 25 Nov 2015 13:23:07 +0000 (21:23 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 25 Nov 2015 15:22:58 +0000 (16:22 +0100)
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>
include/drm/drm_mm.h

index a58cc6c05cd648f6337893a6dc6fa1ec36f41838..fc65118e5077811c69f7a5bb6af6b33419a3bb0a 100644 (file)
@@ -148,8 +148,7 @@ static inline u64 drm_mm_hole_node_start(struct drm_mm_node *hole_node)
 
 static inline u64 __drm_mm_hole_node_end(struct drm_mm_node *hole_node)
 {
-       return list_entry(hole_node->node_list.next,
-                         struct drm_mm_node, node_list)->start;
+       return list_next_entry(hole_node, node_list)->start;
 }
 
 /**