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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1211,7 +1211,6 @@ static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32
	SDEBUG("<<\n");

free:
	if (ws)
	kfree(ectx.ws);
	return ret;
}