aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guidocella91@gmail.com>2020-08-29 08:41:51 +0200
committerGuido Cella <guidocella91@gmail.com>2020-08-29 08:41:51 +0200
commit3203d1bafd53cfbc84f5a6ab31d1438709e01d5d (patch)
treedfcb020015cba59041535ffcfd501f40108565a9
parentddd3c2ad7ef15d14c920b0678a5a20755c07b4f4 (diff)
don't handle failed calloc
be consistent with the rest of the code
-rw-r--r--dwl.c2
1 files changed, 0 insertions, 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,