diff options
author | Sui Jingfeng <suijingfeng@loongson.cn> | 2023-06-22 18:18:57 +0800 |
---|---|---|
committer | Sui Jingfeng <suijingfeng@loongson.cn> | 2023-07-05 01:47:32 +0800 |
commit | 319eeec55ba3d67e0b9501fa422107447ba3ffe8 (patch) | |
tree | f3fdd988288332c19059a9e3febf89ccc8a77460 | |
parent | b0fb8b6908a06f35e8ab6d04faac446072ad39ba (diff) | |
download | linux-319eeec55ba3d67e0b9501fa422107447ba3ffe8.tar.gz linux-319eeec55ba3d67e0b9501fa422107447ba3ffe8.tar.bz2 linux-319eeec55ba3d67e0b9501fa422107447ba3ffe8.zip |
drm/drm_gem.c: Remove surplus else after return
else is not generally useful after return
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230622101857.2298773-1-suijingfeng@loongson.cn
-rw-r--r-- | drivers/gpu/drm/drm_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 1a5a2cd0d4ec..c18686f434d4 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -1150,8 +1150,8 @@ int drm_gem_pin(struct drm_gem_object *obj) { if (obj->funcs->pin) return obj->funcs->pin(obj); - else - return 0; + + return 0; } void drm_gem_unpin(struct drm_gem_object *obj) |