From: Geliang Tang Date: Wed, 25 Nov 2015 13:23:07 +0000 (+0800) Subject: drm/mm: use list_next_entry X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87069f4493b2101a71a92b7b9565f488a605a88f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/mm: use list_next_entry To make the intention clearer, use list_next_entry instead of list_entry. Signed-off-by: Geliang Tang Signed-off-by: Daniel Vetter --- 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) 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; } /**