diff options
author | Thierry Reding <treding@nvidia.com> | 2016-06-23 05:39:11 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-06-23 05:59:33 -0400 |
commit | 4b92e2948f8fb2bc2182a2e74703bf0cee777753 (patch) | |
tree | 87658a8b581a808c271de1a1c18f81658242396d | |
parent | 9f2e57cada0483c1d564053a254d6004cddf1c31 (diff) |
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>
-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) | |||
160 | */ | 160 | */ |
161 | u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp) | 161 | u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp) |
162 | { | 162 | { |
163 | u32 val; | ||
164 | |||
165 | host1x_hw_syncpt_load_wait_base(sp->host, sp); | 163 | host1x_hw_syncpt_load_wait_base(sp->host, sp); |
166 | val = sp->base_val; | 164 | |
167 | return val; | 165 | return sp->base_val; |
168 | } | 166 | } |
169 | 167 | ||
170 | /* | 168 | /* |