mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +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>
This commit is contained in:
committed by
Enrico Weigelt
parent
bdafcc009a
commit
69eb546285
@@ -1424,7 +1424,7 @@ drmmode_crtc_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_res
|
||||
if (!crtc)
|
||||
return 0;
|
||||
|
||||
drmmode_crtc = xnfcalloc(sizeof(drmmode_crtc_private_rec), 1);
|
||||
drmmode_crtc = XNFcallocarray(sizeof(drmmode_crtc_private_rec), 1);
|
||||
drmmode_crtc->mode_crtc = drmModeGetCrtc(pRADEONEnt->fd, mode_res->crtcs[num]);
|
||||
drmmode_crtc->drmmode = drmmode;
|
||||
drmmode_crtc->dpms_mode = DPMSModeOff;
|
||||
|
||||
@@ -189,7 +189,7 @@ static Bool RADEONGetRec(ScrnInfoPtr pScrn)
|
||||
{
|
||||
if (pScrn->driverPrivate) return TRUE;
|
||||
|
||||
pScrn->driverPrivate = xnfcalloc(sizeof(RADEONInfoRec), 1);
|
||||
pScrn->driverPrivate = XNFcallocarray(sizeof(RADEONInfoRec), 1);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ radeon_get_scrninfo(int entity_num, void *pci_dev)
|
||||
xf86SetEntityInstanceForScreen(pScrn, pEnt->index, xf86GetNumEntityInstances(pEnt->index) - 1);
|
||||
|
||||
if (!pPriv->ptr)
|
||||
pPriv->ptr = xnfcalloc(sizeof(RADEONEntRec), 1);
|
||||
pPriv->ptr = XNFcallocarray(sizeof(RADEONEntRec), 1);
|
||||
}
|
||||
|
||||
free(pEnt);
|
||||
@@ -258,7 +258,7 @@ radeon_platform_probe(DriverPtr pDriver,
|
||||
xf86SetEntityInstanceForScreen(pScrn, pEnt->index, xf86GetNumEntityInstances(pEnt->index) - 1);
|
||||
|
||||
if (!pPriv->ptr) {
|
||||
pPriv->ptr = xnfcalloc(sizeof(RADEONEntRec), 1);
|
||||
pPriv->ptr = XNFcallocarray(sizeof(RADEONEntRec), 1);
|
||||
pRADEONEnt = pPriv->ptr;
|
||||
} else {
|
||||
pRADEONEnt = pPriv->ptr;
|
||||
|
||||
Reference in New Issue
Block a user