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:
Chris Wilson 2014-01-17 12:55:33 +00:00
parent f23ab963c4
commit 35ea7b2dd5
1 changed files with 2 additions and 2 deletions

View File

@ -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;