aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2016-06-23 11:39:11 +0200
committerThierry Reding <treding@nvidia.com>2016-06-23 11:59:33 +0200
commit4b92e2948f8fb2bc2182a2e74703bf0cee777753 (patch)
tree87658a8b581a808c271de1a1c18f81658242396d /drivers/gpu/host1x
parent9f2e57cada0483c1d564053a254d6004cddf1c31 (diff)
downloadlinux-stericsson-4b92e2948f8fb2bc2182a2e74703bf0cee777753.tar.gz
gpu: host1x: Remove useless local variable
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>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/syncpt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/host1x/syncpt.c b/drivers/gpu/host1x/syncpt.c
index 73b43c25b04b..95589328ad52 100644
--- 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;
}
/*