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>
This commit is contained in:
parent
95150bdf78
commit
87069f4493
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue