summaryrefslogtreecommitdiff
path: root/src/gx_driver.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 15:54:57 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 15:54:57 +0200
commitf4842d760cdd09710ab7e436eb1de690493a5f13 (patch)
tree73640717d163e23a0921026dd32fd8dc59e8239a /src/gx_driver.c
parentb17fbb56d56524f3d12c448aa19186473e6c95d1 (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-geode/-/merge_requests/4>
Diffstat (limited to 'src/gx_driver.c')
-rw-r--r--src/gx_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gx_driver.c b/src/gx_driver.c
index 0471389..2a45e61 100644
--- a/src/gx_driver.c
+++ b/src/gx_driver.c
@@ -462,7 +462,7 @@ GXPreInit(ScrnInfoPtr pScrni, int flags)
return FALSE;
#endif
- pGeode = pScrni->driverPrivate = xnfcalloc(1, sizeof(GeodeRec));
+ pGeode = pScrni->driverPrivate = XNFcallocarray(1, sizeof(GeodeRec));
if (pGeode == NULL)
return FALSE;
@@ -692,7 +692,7 @@ GXPreInit(ScrnInfoPtr pScrni, int flags)
else
pScrni->videoRam = pGeode->pEnt->device->videoRam;
- GeodeClockRange = (ClockRangePtr) xnfcalloc(1, sizeof(ClockRange));
+ GeodeClockRange = (ClockRangePtr) XNFcallocarray(1, sizeof(ClockRange));
GeodeClockRange->next = NULL;
GeodeClockRange->minClock = 25175;
GeodeClockRange->maxClock = 229500;