Commit e6643298 authored by Li zeming's avatar Li zeming Committed by Christian König
Browse files

drm/ttm: Remove unnecessary '0' values from ret



The variable ret is assigned in the judgment branch statement, he does
not need to initialize the assignment.

Signed-off-by: default avatarLi zeming <zeming@nfschina.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907032934.4490-1-zeming@nfschina.com


Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 5e1bfb27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ static inline int ttm_bo_reserve(struct ttm_buffer_object *bo,
				 bool interruptible, bool no_wait,
				 struct ww_acquire_ctx *ticket)
{
	int ret = 0;
	int ret;

	if (no_wait) {
		bool success;