anv: drop cast-to-void of used variable
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 16 Aug 2018 14:47:13 +0000 (15:47 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 16 Aug 2018 16:38:31 +0000 (17:38 +0100)
`device` is used 2 lines below, even visible in the diff context printed.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index 897249baa6aea4958c231ac848e4b38d379c9e19..d8b67b54d638fb42dcfaf0ebb50bae046dc1b431 100644 (file)
@@ -1445,7 +1445,6 @@ VkResult anv_EnumerateDeviceExtensionProperties(
 {
    ANV_FROM_HANDLE(anv_physical_device, device, physicalDevice);
    VK_OUTARRAY_MAKE(out, pProperties, pPropertyCount);
-   (void)device;
 
    for (int i = 0; i < ANV_DEVICE_EXTENSION_COUNT; i++) {
       if (device->supported_extensions.extensions[i]) {