From 0e4932734ca0d7f5e1e5e90e554b186e271a0a4f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 26 Jun 2023 21:01:25 +0100 Subject: [PATCH] [Minor] Remove redundant check --- src/libserver/composites/composites_manager.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libserver/composites/composites_manager.cxx b/src/libserver/composites/composites_manager.cxx index c0f6d3a49..fc19a4162 100644 --- a/src/libserver/composites/composites_manager.cxx +++ b/src/libserver/composites/composites_manager.cxx @@ -266,10 +266,7 @@ struct map_cbdata { static void map_dtor (struct map_cb_data *data) { auto *cbd = reinterpret_cast(data->cur_data); - - if (cbd) { - delete cbd; - } + delete cbd; } }; -- 2.39.5