diff options
author | Li zeming <zeming@nfschina.com> | 2022-09-07 06:29:34 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-09-07 10:42:57 +0300 |
commit | e6643298aac0d9d77696513722c85d7808e4c84a (patch) | |
tree | 46d84eefa6aed901ae52c40a1732ecf49df3c640 /include | |
parent | 5e1bfb277d3b87bc580735564eb487c0be3848b3 (diff) | |
download | linux-e6643298aac0d9d77696513722c85d7808e4c84a.tar.xz |
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')
-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; |