mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
dri2: declare variables where needed in DRI2Connect()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
03e239a823
commit
31520b857b
@@ -1287,14 +1287,13 @@ DRI2Connect(ClientPtr client, ScreenPtr pScreen,
|
||||
unsigned int driverType, int *fd,
|
||||
const char **driverName, const char **deviceName)
|
||||
{
|
||||
DRI2ScreenPtr ds;
|
||||
uint32_t prime_id = DRI2DriverPrimeId(driverType);
|
||||
uint32_t driver_id = driverType & 0xffff;
|
||||
|
||||
if (!dixPrivateKeyRegistered(dri2ScreenPrivateKey))
|
||||
return FALSE;
|
||||
|
||||
ds = DRI2GetScreenPrime(pScreen, prime_id);
|
||||
DRI2ScreenPtr ds = DRI2GetScreenPrime(pScreen, prime_id);
|
||||
if (ds == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user