mirror of
https://github.com/X11Libre/xf86-video-voodoo.git
synced 2026-03-24 01:25:25 +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-voodoo/-/merge_requests/6>
This commit is contained in:
@@ -182,7 +182,7 @@ VoodooGetRec(ScrnInfoPtr pScrn)
|
||||
if (pScrn->driverPrivate != NULL)
|
||||
return TRUE;
|
||||
|
||||
pScrn->driverPrivate = xnfcalloc(sizeof(VoodooRec), 1);
|
||||
pScrn->driverPrivate = XNFcallocarray(sizeof(VoodooRec), 1);
|
||||
|
||||
/* Initialize it */
|
||||
/* No init here yet */
|
||||
@@ -480,7 +480,7 @@ VoodooPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
|
||||
/* Set up clock ranges so that the xf86ValidateModes() function will not fail a mode because of the clock
|
||||
requirement (because we don't use the clock value anyway) */
|
||||
clockRanges = xnfcalloc(sizeof(ClockRange), 1);
|
||||
clockRanges = XNFcallocarray(sizeof(ClockRange), 1);
|
||||
clockRanges->next = NULL;
|
||||
clockRanges->minClock = 10000;
|
||||
clockRanges->maxClock = 250000; /* 250MHz DAC */
|
||||
|
||||
Reference in New Issue
Block a user