diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 14:33:58 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 14:33:58 +0200 |
commit | 9fb55bd42f3d5d2efe811eb2fbbea2895bfe0f0d (patch) | |
tree | 88a0d658b960989079c3a13594f65ee8c70ce86a | |
parent | d72c0bb68e3ab9a47625c6c37b62b006df97d21a (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-cirrus/-/merge_requests/5>
-rw-r--r-- | src/alp_driver.c | 6 | ||||
-rw-r--r-- | src/lg_driver.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/alp_driver.c b/src/alp_driver.c index d296614..4689a52 100644 --- a/src/alp_driver.c +++ b/src/alp_driver.c @@ -221,8 +221,8 @@ AlpGetRec(ScrnInfoPtr pScrn) if (pScrn->driverPrivate != NULL) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(CirRec), 1); - ((CirPtr)pScrn->driverPrivate)->chip.alp = xnfcalloc(sizeof(AlpRec),1); + pScrn->driverPrivate = XNFcallocarray(sizeof(CirRec), 1); + ((CirPtr)pScrn->driverPrivate)->chip.alp = XNFcallocarray(sizeof(AlpRec),1); #ifdef ALP_DEBUG ErrorF("AlpGetRec 0x%x\n", CIRPTR(pScrn)); @@ -957,7 +957,7 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags) * Setup the ClockRanges, which describe what clock ranges are available, * and what sort of modes they can be used for. */ - clockRanges = xnfcalloc(sizeof(ClockRange), 1); + clockRanges = XNFcallocarray(sizeof(ClockRange), 1); clockRanges->next = NULL; clockRanges->minClock = pCir->MinClock; clockRanges->maxClock = pCir->MaxClock; diff --git a/src/lg_driver.c b/src/lg_driver.c index 0a4c3b5..b08c152 100644 --- a/src/lg_driver.c +++ b/src/lg_driver.c @@ -278,9 +278,9 @@ LgGetRec(ScrnInfoPtr pScrn) if (pScrn->driverPrivate != NULL) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(CirRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(CirRec), 1); ((CirPtr) pScrn->driverPrivate)->chip.lg = - xnfcalloc(sizeof(LgRec), 1); + XNFcallocarray(sizeof(LgRec), 1); /* * Initialize it. @@ -871,7 +871,7 @@ LgPreInit(ScrnInfoPtr pScrn, int flags) * Setup the ClockRanges, which describe what clock ranges are * available, and what sort of modes they can be used for. */ - clockRanges = xnfcalloc(sizeof(ClockRange), 1); + clockRanges = XNFcallocarray(sizeof(ClockRange), 1); clockRanges->next = NULL; clockRanges->minClock = pCir->MinClock; clockRanges->maxClock = pCir->MaxClock; |