From: Li zeming Date: Wed, 7 Sep 2022 03:29:34 +0000 (+0800) Subject: drm/ttm: Remove unnecessary '0' values from ret X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e6643298aac0d9d77696513722c85d7808e4c84a;p=linux.git 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: Li zeming Link: https://patchwork.freedesktop.org/patch/msgid/20220907032934.4490-1-zeming@nfschina.com Reviewed-by: Christian König Signed-off-by: Christian König --- diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 897b88f0bd59b..1afa891f488a3 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -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;