summaryrefslogtreecommitdiff
path: root/src/r128_crtc.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:31:02 +0200
committerMarge Bot <emma+marge@anholt.net>2024-05-12 17:03:49 +0000
commit965d321ac7600cd4f8fbf340be039dbff5f16ad3 (patch)
tree3a52569496d3eb39ff31ab113ebe3c035269d7ee /src/r128_crtc.c
parentf753d699fd2d1832e06d9eb3fd2e706fdb15fa39 (diff)
use XNFcallocarray() instead of xnfcalloc macro
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/8>
Diffstat (limited to 'src/r128_crtc.c')
-rw-r--r--src/r128_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/r128_crtc.c b/src/r128_crtc.c
index f03a857..bc06e30 100644
--- a/src/r128_crtc.c
+++ b/src/r128_crtc.c
@@ -1094,7 +1094,7 @@ Bool R128AllocateControllers(ScrnInfoPtr pScrn)
if (!pR128Ent->pCrtc[0])
return FALSE;
- pR128Ent->Controller[0] = xnfcalloc(sizeof(R128CrtcPrivateRec), 1);
+ pR128Ent->Controller[0] = XNFcallocarray(sizeof(R128CrtcPrivateRec), 1);
if (!pR128Ent->Controller[0])
return FALSE;
@@ -1108,7 +1108,7 @@ Bool R128AllocateControllers(ScrnInfoPtr pScrn)
if (!pR128Ent->pCrtc[1])
return FALSE;
- pR128Ent->Controller[1] = xnfcalloc(sizeof(R128CrtcPrivateRec), 1);
+ pR128Ent->Controller[1] = XNFcallocarray(sizeof(R128CrtcPrivateRec), 1);
if (!pR128Ent->Controller[1]) {
free(pR128Ent->Controller[0]);
return FALSE;