projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f2e57c
)
gpu: host1x: Remove useless local variable
author
Thierry Reding
<treding@nvidia.com>
Thu, 23 Jun 2016 09:39:11 +0000
(11:39 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 23 Jun 2016 09:59:33 +0000
(11:59 +0200)
The local 'val' variable is used to store a value and immediately return
it to its caller, and hence serves no purpose. Just drop it and directly
return the value.
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/syncpt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/host1x/syncpt.c
b/drivers/gpu/host1x/syncpt.c
index 73b43c25b04b3b1c50aaed7061de60037dfe4d9f..95589328ad52a27a7ba345f097a5740cca67d34f 100644
(file)
--- a/
drivers/gpu/host1x/syncpt.c
+++ b/
drivers/gpu/host1x/syncpt.c
@@
-160,11
+160,9
@@
u32 host1x_syncpt_load(struct host1x_syncpt *sp)
*/
u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp)
{
- u32 val;
-
host1x_hw_syncpt_load_wait_base(sp->host, sp);
- val = sp->base_val;
- return val;
+
+ return
sp->base_
val;
}
/*