diff options
author | Eric Anholt <eric@anholt.net> | 2010-02-19 08:11:00 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-02-20 12:55:13 -0500 |
commit | ec5deb2bcbf828c3c47488eb77461c26cab38ed6 (patch) | |
tree | 2f19d49628238b4f2053b8a07d94b16068e9a0b7 /src/i830_driver.c | |
parent | a4180eabfa00c256494ed09aa336a17605c49a8a (diff) |
Remove dead assignments noticed by clang.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index c88195ce..35e57f67 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -232,25 +232,20 @@ const OptionInfoRec *I830AvailableOptions(int chipid, int busid) static Bool I830GetRec(ScrnInfoPtr scrn) { - intel_screen_private *intel; - if (scrn->driverPrivate) return TRUE; - intel = scrn->driverPrivate = xnfcalloc(sizeof(intel_screen_private), 1); + scrn->driverPrivate = xnfcalloc(sizeof(intel_screen_private), 1); + return TRUE; } static void I830FreeRec(ScrnInfoPtr scrn) { - intel_screen_private *intel; - if (!scrn) return; if (!scrn->driverPrivate) return; - intel = intel_get_screen_private(scrn); - xfree(scrn->driverPrivate); scrn->driverPrivate = NULL; } |