commit f0e0669

Michael Forney  ·  2019-08-28 21:01:11 +0000 UTC
parent f436b8c
Remove rendundant wl_client_post_no_memory

Both callers of wayland_buffer_create_resource already report 'no memory'
errors.
1 files changed,  +2, -8
+2, -8
 1@@ -61,13 +61,7 @@ wayland_buffer_create_resource(struct wl_client *client, uint32_t version, uint3
 2 	struct wl_resource *resource;
 3 
 4 	resource = wl_resource_create(client, &wl_buffer_interface, version, id);
 5-
 6-	if (!resource) {
 7-		wl_client_post_no_memory(client);
 8-		return NULL;
 9-	}
10-
11-	wl_resource_set_implementation(resource, &buffer_implementation, buffer, &destroy_buffer);
12-
13+	if (resource)
14+		wl_resource_set_implementation(resource, &buffer_implementation, buffer, &destroy_buffer);
15 	return resource;
16 }