Commit 981d4f7d authored by Bernard Zhao's avatar Bernard Zhao Committed by Alex Deucher

drm/radeon: cleanup coding style a bit

Maybe no need to check ws before kmalloc, kmalloc will check
itself, kmalloc`s logic is if ptr is NULL, kmalloc will just
return
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarBernard Zhao <bernard@vivo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 43965797
...@@ -1211,7 +1211,6 @@ static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32 ...@@ -1211,7 +1211,6 @@ static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32
SDEBUG("<<\n"); SDEBUG("<<\n");
free: free:
if (ws)
kfree(ectx.ws); kfree(ectx.ws);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment