summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 12:31:12 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-17 10:48:52 -0800
commitaaca346d99200f80d3fa6af0bb34754e923b2430 (patch)
treefa7b52f47fcd7d5fdc38841881001e3dbda21d9e
parent18a4868897c46304c571101a1a95833f35fb8cc5 (diff)
Fix warning: variable ‘pCg3’ set but not used [-Wunused-but-set-variable]
cg3_driver.c: In function ‘CG3FreeRec’: cg3_driver.c:156:12: warning: variable ‘pCg3’ set but not used [-Wunused-but-set-variable] 156 | Cg3Ptr pCg3; | ^~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/cg3_driver.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cg3_driver.c b/src/cg3_driver.c
index 3e9e63a..ee6ec72 100644
--- a/src/cg3_driver.c
+++ b/src/cg3_driver.c
@@ -153,13 +153,9 @@ CG3GetRec(ScrnInfoPtr pScrn)
static void
CG3FreeRec(ScrnInfoPtr pScrn)
{
- Cg3Ptr pCg3;
-
if (pScrn->driverPrivate == NULL)
return;
- pCg3 = GET_CG3_FROM_SCRN(pScrn);
-
free(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;