e_compositor: Reduce log printed by null 46/315646/2
authorSeunghun Lee <shiin@samsung.com>
Tue, 3 Dec 2024 05:59:19 +0000 (14:59 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 4 Dec 2024 04:33:03 +0000 (04:33 +0000)
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

index a2cd81e8b7b96f52f55670e3c7855239684ea585..cf6b70045475b86dbd95ff89172da3bf513d2f6f 100644 (file)
@@ -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);
 }