]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: small cleanup in destruct()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 Nov 2017 07:07:33 +0000 (10:07 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Nov 2017 21:21:39 +0000 (16:21 -0500)
commit620fd73edfd7297307e0e3ac581e65247c9dd8db
treef48980243ea7a9d5344e0742d219219ace49fa12
parent26c860d5579684528114c3875ef88f7796330eb5
drm/amd/display: small cleanup in destruct()

Static analysis tools get annoyed that we don't indent this if
statement.  Actually, the if statement isn't required because kfree()
can handle NULL pointers just fine.  The DCE110STRENC_FROM_STRENC()
macro is a wrapper around container_of() but it's basically a no-op or a
cast.  Anyway, it's not really appropriate here so it should be removed
as well.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c