From 7f106a2b5d0b27c1ce47a4b335c4cc8ae9cd460b Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 28 Oct 2019 21:27:52 +1100 Subject: util: rename list_empty() to list_is_empty() This makes it clear that it's a boolean test and not an action (eg. "empty the list"). Reviewed-by: Eric Engestrom --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_device.c') diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 9e6eaab8c80..75654da8f24 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -68,7 +68,7 @@ compiler_debug_log(void *data, const char *fmt, ...) char str[MAX_DEBUG_MESSAGE_LENGTH]; struct anv_device *device = (struct anv_device *)data; - if (list_empty(&device->instance->debug_report_callbacks.callbacks)) + if (list_is_empty(&device->instance->debug_report_callbacks.callbacks)) return; va_list args; -- cgit v1.2.3