intel: Silence a compiler warning (-Wshadow)
intel_device.c: In function 'intel_entity_get_devid': intel_device.c:82:32: warning: declaration of 'index' shadows a global declaration [-Wshadow] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
f23ab963c4
commit
35ea7b2dd5
|
|
@ -79,11 +79,11 @@ static int __intel_get_device_id(int fd)
|
|||
return devid;
|
||||
}
|
||||
|
||||
int intel_entity_get_devid(int index)
|
||||
int intel_entity_get_devid(int idx)
|
||||
{
|
||||
struct intel_device *dev;
|
||||
|
||||
dev = xf86GetEntityPrivate(index, intel_device_key)->ptr;
|
||||
dev = xf86GetEntityPrivate(idx, intel_device_key)->ptr;
|
||||
if (dev == NULL)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue