]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mm: Remove redundant assignment in drm_mm_reserve_node
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Mon, 9 Mar 2020 15:11:56 +0000 (08:11 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Mar 2020 10:25:07 +0000 (10:25 +0000)
commit399f078f6702fe7b4c8db2cf92b07dc2fd542494
treee7fe39f04f19b2f2346fd28b2cab2a06f1278458
parent323ad33911a12607f28d4b3dc5e3e98f1abeb842
drm/mm: Remove redundant assignment in drm_mm_reserve_node

In Pete Goodliffe words, "You can improve a system by adding new code. You
can also improve a system by removing code" - In this case, commit
"9cf380e4b1e08" added new code to initialize end of the node. So, there
is no need for duplicated initialization, and this patch simply removes it.

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200309151156.25040-1-akeem.g.abodunrin@intel.com
drivers/gpu/drm/drm_mm.c