mirror of
https://github.com/X11Libre/xf86-video-cirrus.git
synced 2026-03-24 01:24:45 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user