monitor: request-handler: Remove unneeded local variable 49/277449/4 accepted/tizen/unified/20220715.141323 submit/tizen/20220714.022316
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 5 Jul 2022 11:17:48 +0000 (20:17 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 8 Jul 2022 09:03:24 +0000 (18:03 +0900)
Change-Id: Iff69aa14a7aa97b4db8efa782dc845ba513f2648
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/monitor/request-handler.c

index 1cf1a6903c1593493ec4417e130dcd9ce2a6d943..ee21593e95af7330e748431a95c291dafd3818cd 100644 (file)
@@ -70,11 +70,7 @@ unregister_resource_from_client(struct request_client *client, int resource_id)
 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)