diff options
author | Li zeming <zeming@nfschina.com> | 2022-09-07 05:29:34 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-09-07 09:42:57 +0200 |
commit | e6643298aac0d9d77696513722c85d7808e4c84a (patch) | |
tree | 46d84eefa6aed901ae52c40a1732ecf49df3c640 /include/drm/ttm/ttm_bo_driver.h | |
parent | drm/via: Add new condition to via_dma_cleanup() (diff) | |
download | linux-e6643298aac0d9d77696513722c85d7808e4c84a.tar.xz linux-e6643298aac0d9d77696513722c85d7808e4c84a.zip |
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 <zeming@nfschina.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907032934.4490-1-zeming@nfschina.com
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include/drm/ttm/ttm_bo_driver.h')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 897b88f0bd59..1afa891f488a 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; |