projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc7a76
)
svga: minor simplification in svga_validate_surface_view()
author
Brian Paul
<brianp@vmware.com>
Fri, 16 Sep 2016 21:22:51 +0000
(15:22 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 21 Sep 2016 18:23:45 +0000
(12:23 -0600)
Get rid of unneeded local var.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_surface.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_surface.c
b/src/gallium/drivers/svga/svga_surface.c
index
42636bc
..
7cc7ef1
100644
(file)
--- a/
src/gallium/drivers/svga/svga_surface.c
+++ b/
src/gallium/drivers/svga/svga_surface.c
@@
-405,9
+405,9
@@
svga_validate_surface_view(struct svga_context *svga, struct svga_surface *s)
{
enum pipe_error ret = PIPE_OK;
enum pipe_shader_type shader;
- struct pipe_surface *surf = NULL;
assert(svga_have_vgpu10(svga));
+ assert(s);
SVGA_STATS_TIME_PUSH(svga_sws(svga),
SVGA_STATS_TIME_VALIDATESURFACEVIEW);
@@
-481,12
+481,11
@@
svga_validate_surface_view(struct svga_context *svga, struct svga_surface *s)
goto done;
}
}
- surf = &s->base;
done:
SVGA_STATS_TIME_POP(svga_sws(svga));
- return
surf
;
+ return
&s->base
;
}