projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a19b4c
)
drm/mm: remove unused rb_hole_size()
author
Christian König
<christian.koenig@amd.com>
Mon, 8 Jun 2020 15:27:01 +0000
(17:27 +0200)
committer
Christian König
<christian.koenig@amd.com>
Tue, 23 Jun 2020 13:37:27 +0000
(15:37 +0200)
Just some code cleanup.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nirmoy Das <nirmoy.das@amd.com>
Link:
https://patchwork.freedesktop.org/patch/370296/
drivers/gpu/drm/drm_mm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_mm.c
b/drivers/gpu/drm/drm_mm.c
index 82d2888eb7febd3bca3bef68aa625d4216a96a93..425fcd3590e8c3617a41acff689a28a22c749d29 100644
(file)
--- a/
drivers/gpu/drm/drm_mm.c
+++ b/
drivers/gpu/drm/drm_mm.c
@@
-305,11
+305,6
@@
static inline struct drm_mm_node *rb_hole_addr_to_node(struct rb_node *rb)
return rb_entry_safe(rb, struct drm_mm_node, rb_hole_addr);
}
-static inline u64 rb_hole_size(struct rb_node *rb)
-{
- return rb_entry(rb, struct drm_mm_node, rb_hole_size)->hole_size;
-}
-
static struct drm_mm_node *best_hole(struct drm_mm *mm, u64 size)
{
struct rb_node *rb = mm->holes_size.rb_root.rb_node;