Browse Source

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>
Thierry Reding 9 years ago
parent
commit
4b92e2948f
1 changed files with 2 additions and 4 deletions
  1. 2 4
      drivers/gpu/host1x/syncpt.c

+ 2 - 4
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 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp)
 {
 {
-	u32 val;
-
 	host1x_hw_syncpt_load_wait_base(sp->host, sp);
 	host1x_hw_syncpt_load_wait_base(sp->host, sp);
-	val = sp->base_val;
-	return val;
+
+	return sp->base_val;
 }
 }
 
 
 /*
 /*