From 3203d1bafd53cfbc84f5a6ab31d1438709e01d5d Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 29 Aug 2020 08:41:51 +0200 Subject: don't handle failed calloc be consistent with the rest of the code --- dwl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dwl.c b/dwl.c index f266ee2..a0772fe 100644 --- a/dwl.c +++ b/dwl.c @@ -878,8 +878,6 @@ createlayersurface(struct wl_listener *listener, void *data) } layersurface = calloc(1, sizeof(LayerSurface)); - if (!layersurface) - return; layersurface->surface_commit.notify = commitlayersurfacenotify; wl_signal_add(&wlr_layer_surface->surface->events.commit, -- cgit v1.2.3