Change-Id: Iff69aa14a7aa97b4db8efa782dc845ba513f2648
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
static struct resource *
get_resource_by_id(struct request_client *client, int resource_id)
{
- struct resource *res;
-
- res = g_hash_table_lookup(client->resource_table, GINT_TO_POINTER(resource_id));
-
- return res;
+ return g_hash_table_lookup(client->resource_table, GINT_TO_POINTER(resource_id));
}
static int handle_request_create_resource(struct request_client *client, char *args)