diff options
author | Thierry Reding <treding@nvidia.com> | 2016-06-23 11:39:11 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-06-23 11:59:33 +0200 |
commit | 4b92e2948f8fb2bc2182a2e74703bf0cee777753 (patch) | |
tree | 87658a8b581a808c271de1a1c18f81658242396d /drivers/gpu/host1x/syncpt.c | |
parent | gpu: host1x: Constify array of action handlers (diff) | |
download | linux-4b92e2948f8fb2bc2182a2e74703bf0cee777753.tar.xz linux-4b92e2948f8fb2bc2182a2e74703bf0cee777753.zip |
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/syncpt.c')
-rw-r--r-- | drivers/gpu/host1x/syncpt.c | 6 |
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; } /* |