From c314920a3d2bcb347d9ae491a678d8349f32ae8d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 21 Apr 2021 12:04:10 +0200 Subject: render: remove NULL checks in wlr_texture_impl.destroy The NULL check already exists in wlr_texture_destroy, no need to duplicate it in each impl --- render/pixman/renderer.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'render/pixman') diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c index 688af9be..5e5deaa2 100644 --- a/render/pixman/renderer.c +++ b/render/pixman/renderer.c @@ -43,11 +43,7 @@ static bool texture_is_opaque(struct wlr_texture *wlr_texture) { } static void texture_destroy(struct wlr_texture *wlr_texture) { - if (wlr_texture == NULL) { - return; - } struct wlr_pixman_texture *texture = get_texture(wlr_texture); - wl_list_remove(&texture->link); pixman_image_unref(texture->image); free(texture->data); -- cgit v1.2.3