diff options
author | Dave Airlie <[email protected]> | 2018-10-05 09:20:09 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-10-11 10:19:48 +1000 |
commit | c5c3da6c90220f1333dd3d0d34642bcd33a609fb (patch) | |
tree | d8b1c4628dd2cfb7cf93f0be35ab95c6a38f7f84 /src/mesa/main | |
parent | 600d8ecb579045eec5048c141ee1f805cd4bf14b (diff) |
glspirv: drop pointless assert (size_t is unsigned)
Found by coverity
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/glspirv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c index fecf7384eb3..972989055e9 100644 --- a/src/mesa/main/glspirv.c +++ b/src/mesa/main/glspirv.c @@ -73,8 +73,6 @@ _mesa_spirv_shader_binary(struct gl_context *ctx, struct gl_spirv_module *module; struct gl_shader_spirv_data *spirv_data; - assert(length >= 0); - module = malloc(sizeof(*module) + length); if (!module) { _mesa_error(ctx, GL_OUT_OF_MEMORY, "glShaderBinary"); |