diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 16:58:13 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 16:58:13 +0200 |
commit | 54181eb101f4c6a5a0710b5d9cdf5a4e50a0a652 (patch) | |
tree | ff1d491b4152f0f78cba11743c8b5bf291e6fe2a | |
parent | ae568c66757844bf5d80959f1d725e613b077be1 (diff) |
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-sisusb/-/merge_requests/4>
-rw-r--r-- | src/sisusb_driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sisusb_driver.c b/src/sisusb_driver.c index c879cda..5718d3c 100644 --- a/src/sisusb_driver.c +++ b/src/sisusb_driver.c @@ -168,7 +168,7 @@ SISUSBGetRec(ScrnInfoPtr pScrn) */ if(pScrn->driverPrivate != NULL) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(SISUSBRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(SISUSBRec), 1); /* Initialise it to 0 */ memset(pScrn->driverPrivate, 0, sizeof(SISUSBRec)); @@ -980,7 +980,7 @@ SISUSBPreInit(ScrnInfoPtr pScrn, int flags) /* Allocate SiS_Private (for mode switching code) and initialize it */ - if(!(pSiSUSB->SiS_Pr = xnfcalloc(sizeof(SiS_Private), 1))) { + if(!(pSiSUSB->SiS_Pr = XNFcallocarray(sizeof(SiS_Private), 1))) { SISUSBErrorLog(pScrn, "Could not allocate memory for SiS_Pr structure\n"); SISUSBFreeRec(pScrn); return FALSE; @@ -1284,7 +1284,7 @@ SISUSBPreInit(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 = pSiSUSB->MinClock; clockRanges->maxClock = pSiSUSB->MaxClock; |