summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 13:44:27 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-17 10:59:31 -0800
commitf644fbeab36e7c5887b1c047ab41df7411845286 (patch)
treeb701147e16ced17e884cd47d78ee52a928e2cff5
parentd14f35cc68f3af42b1b8e23cfc126d0ccfa4f9d0 (diff)
Fix warning: variable ‘pLeo’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/leo_driver.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/leo_driver.c b/src/leo_driver.c
index 5d7a5b1..f6fc87c 100644
--- a/src/leo_driver.c
+++ b/src/leo_driver.c
@@ -162,13 +162,9 @@ LeoGetRec(ScrnInfoPtr pScrn)
static void
LeoFreeRec(ScrnInfoPtr pScrn)
{
- LeoPtr pLeo;
-
if (pScrn->driverPrivate == NULL)
return;
- pLeo = GET_LEO_FROM_SCRN(pScrn);
-
free(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;