]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
gpu: drm/lease:: Use list_{next/prev}_entry instead of list_entry
authorArushi Singhal <arushisinghal19971997@gmail.com>
Sun, 25 Mar 2018 18:01:32 +0000 (23:31 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 26 Mar 2018 08:38:06 +0000 (10:38 +0200)
It's better to use list_entry instead of list_{next/prev}_entry
as it makes the code more clear to read.
This patch replace list_entry with list_{next/prev}_entry.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1522000893-5331-2-git-send-email-arushisinghal19971997@gmail.com
drivers/gpu/drm/drm_lease.c

index d345563fdff3133f3a156e9387cea90655600bb9..50c73c0a20b92e808d1ab511d1d3336ab9a094df 100644 (file)
@@ -340,7 +340,7 @@ static void _drm_lease_revoke(struct drm_master *top)
                                break;
 
                        /* Over */
-                       master = list_entry(master->lessee_list.next, struct drm_master, lessee_list);
+                       master = list_next_entry(master, lessee_list);
                }
        }
 }