svga: remove assertions in svga_surface cast wrappers

We don't do this for other cast wrappers.  And this will simplify some
code at call sites.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
This commit is contained in:
Brian Paul 2016-08-25 17:43:40 -06:00
parent c6e89fa215
commit d3d20d650d
1 changed files with 0 additions and 2 deletions

View File

@ -93,7 +93,6 @@ svga_texture_copy_handle(struct svga_context *svga,
static inline struct svga_surface *
svga_surface(struct pipe_surface *surface)
{
assert(surface);
return (struct svga_surface *)surface;
}
@ -101,7 +100,6 @@ svga_surface(struct pipe_surface *surface)
static inline const struct svga_surface *
svga_surface_const(const struct pipe_surface *surface)
{
assert(surface);
return (const struct svga_surface *)surface;
}