v3dv: remove unnecessary check for NULL

We are initializing the device, so we know this will be NULL.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19458>
This commit is contained in:
Iago Toral Quiroga 2022-11-02 08:49:37 +01:00
parent c6c5949ff7
commit c793d384c1

View file

@ -2104,11 +2104,9 @@ v3dv_CreateDevice(VkPhysicalDevice physicalDevice,
device->device_address_mem_ctx);
mtx_init(&device->events.lock, mtx_plain);
if (!device->events.bo) {
result = v3dv_event_allocate_resources(device);
if (result != VK_SUCCESS)
goto fail;
}
result = v3dv_event_allocate_resources(device);
if (result != VK_SUCCESS)
goto fail;
if (list_is_empty(&device->events.free_list)) {
result = vk_error(device, VK_ERROR_OUT_OF_DEVICE_MEMORY);