From cf0e6d539adb70264fd6fb907be4026c5b794e8c Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Tue, 3 Dec 2024 14:59:19 +0900 Subject: [PATCH] e_compositor: Reduce log printed by null The e_surface_try_from_ec() can return null normally, therefore it shouldn't make noise when it returns null. Change-Id: I3c55d909124dc0fc26d56810dafb64c2a8734555 --- src/bin/server/e_compositor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/server/e_compositor.c b/src/bin/server/e_compositor.c index a2cd81e8b7..cf6b700454 100644 --- a/src/bin/server/e_compositor.c +++ b/src/bin/server/e_compositor.c @@ -299,7 +299,8 @@ e_surface_from_ec(E_Client *ec) EINTERN E_Surface * e_surface_try_from_ec(E_Client *ec) { - EINA_SAFETY_ON_NULL_RETURN_VAL(ec->comp_data, NULL); + if (!ec->comp_data) + return NULL; return e_surface_from_ec(ec); } -- 2.34.1