From d76eda9d1c6456ece6b5e2a6b8a772293e10beb6 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sat, 29 Oct 2011 19:52:52 -0700 Subject: Use malloc/calloc/realloc/free directly Signed-off-by: Jeremy Huddleston --- src/ffb_driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ffb_driver.c') diff --git a/src/ffb_driver.c b/src/ffb_driver.c index 4e37c6c..b89771a 100644 --- a/src/ffb_driver.c +++ b/src/ffb_driver.c @@ -175,7 +175,7 @@ FFBFreeRec(ScrnInfoPtr pScrn) pFfb = GET_FFB_FROM_SCRN(pScrn); - xfree(pScrn->driverPrivate); + free(pScrn->driverPrivate); pScrn->driverPrivate = NULL; return; @@ -245,7 +245,7 @@ FFBProbe(DriverPtr drv, int flags) devSections, numDevSections, drv, &usedChips); - xfree(devSections); + free(devSections); if (numUsed <= 0) return FALSE; @@ -279,9 +279,9 @@ FFBProbe(DriverPtr drv, int flags) xf86AddEntityToScreen(pScrn, pEnt->index); foundScreen = TRUE; } - xfree(pEnt); + free(pEnt); } - xfree(usedChips); + free(usedChips); return foundScreen; } @@ -356,7 +356,7 @@ FFBPreInit(ScrnInfoPtr pScrn, int flags) /* Collect all of the relevant option flags (fill in pScrn->options) */ xf86CollectOptions(pScrn, NULL); /* Process the options */ - if (!(pFfb->Options = xalloc(sizeof(FFBOptions)))) + if (!(pFfb->Options = malloc(sizeof(FFBOptions)))) return FALSE; memcpy(pFfb->Options, FFBOptions, sizeof(FFBOptions)); xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pFfb->Options); -- cgit v1.2.3