Change-Id: I8f19d5acba8e98c812f1edb20dec009a86a16fc8
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
return NULL;
mc = calloc(1, sizeof(mmi_client));
- if (!mc)
- {
- LOGE("Failed to allocate memory for client !\n");
- return NULL;
- }
+ if (!mc)
+ {
+ LOGE("Failed to allocate memory for client !\n");
+ return NULL;
+ }
mc->sender = strdup(sender);
if (!eina_hash_add(_client_hash, sender, mc))
- {
- LOGE("Failed to add client info to client hash !\n");
- goto err;
- }
+ {
+ LOGE("Failed to add client info to client hash !\n");
+ goto err;
+ }
return mc;
err:
const char *
client_manager_get_client_sender(mmi_client *client)
{
- if (!client)
- return NULL;
+ if (!client)
+ return NULL;
- return client->sender;
+ return client->sender;
}
static void