Skip to content

Commit

Permalink
drm/mm: use list_next_entry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geliang Tang authored and Daniel Vetter committed Nov 25, 2015
1 parent 95150bd commit 87069f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/drm/drm_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 87069f4

Please sign in to comment.