projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0fb8b6
)
drm/drm_gem.c: Remove surplus else after return
author
Sui Jingfeng
<suijingfeng@loongson.cn>
Thu, 22 Jun 2023 10:18:57 +0000
(18:18 +0800)
committer
Sui Jingfeng
<suijingfeng@loongson.cn>
Tue, 4 Jul 2023 17:47:32 +0000
(
01:47
+0800)
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
drivers/gpu/drm/drm_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_gem.c
b/drivers/gpu/drm/drm_gem.c
index
1a5a2cd
..
c18686f
100644
(file)
--- 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)