diff options
author | Emil Velikov <[email protected]> | 2015-10-28 12:27:14 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-10-30 17:37:09 +0000 |
commit | 72d7d1e224049f3f22e1275df99e6e8e31de0506 (patch) | |
tree | c679f89205fd128d1134e93a35ba701addbe18f4 /src/gallium/winsys/virgl/vtest | |
parent | 1ce685f05e798d1b3c0526b5431f8109dd8803fa (diff) |
winsys/virgl: remove calloc/malloc casts
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/winsys/virgl/vtest')
-rw-r--r-- | src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c index 1c8df6e469d..28c4c62931b 100644 --- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c +++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c @@ -394,8 +394,7 @@ static struct virgl_cmd_buf *virgl_vtest_cmd_buf_create(struct virgl_winsys *vws return NULL; cbuf->nres = 512; - cbuf->res_bo = (struct virgl_hw_res **) - CALLOC(cbuf->nres, sizeof(struct virgl_hw_buf*)); + cbuf->res_bo = CALLOC(cbuf->nres, sizeof(struct virgl_hw_buf*)); if (!cbuf->res_bo) { FREE(cbuf); return NULL; |