[client] remove all casts around malloc

The cast is unnecessary in C and should be removed to avoid clutter.
This commit is contained in:
Quantum
2021-08-15 18:55:19 -04:00
committed by Geoffrey McRae
parent fd4a4114e6
commit 81c38e825c
12 changed files with 18 additions and 18 deletions

View File

@@ -57,7 +57,7 @@ static void egl_texDMABUFCleanup(TexDMABUF * this)
static bool egl_texDMABUFInit(EGL_Texture ** texture, EGLDisplay * display)
{
TexDMABUF * this = (TexDMABUF *)calloc(1, sizeof(*this));
TexDMABUF * this = calloc(1, sizeof(*this));
*texture = &this->base.base;
EGL_Texture * parent = &this->base.base;