pass: gov: Fix build warnings caused by unused variables 30/133630/3 accepted/tizen/unified/20170615.020700 submit/tizen/20170614.020920
authorWook Song <wook16.song@samsung.com>
Tue, 13 Jun 2017 03:03:13 +0000 (12:03 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 14 Jun 2017 02:05:28 +0000 (02:05 +0000)
This patch fixes build warnings, which are caused by unused variables,
in the __pass_governor_init and __pass_governor_exit functions.

Change-Id: I9609991e1ef3e2b8136467171a595a68ec000bc3
Signed-off-by: Wook Song <wook16.song@samsung.com>
src/pass/pass-gov.c

index eec38d8e95e4609915487ef80c65af848add999f..e4ae37c2f7112cfdfb976d740249f95ae8284045 100644 (file)
@@ -498,8 +498,6 @@ static void __pass_governor_stop(struct pass_policy *policy)
 
 static int __pass_governor_init(struct pass_policy *policy)
 {
-       struct pass_resource *res = to_pass_resource(policy);
-       struct pass_conf_data *cdata = &res->cdata;
        int ret;
 
        if(policy->gov_timeout < 0) {
@@ -524,8 +522,6 @@ static int __pass_governor_init(struct pass_policy *policy)
 
 static int __pass_governor_exit(struct pass_policy *policy)
 {
-       struct pass_resource *res = to_pass_resource(policy);
-       struct pass_conf_data *cdata = &res->cdata;
        int i;
 
        /* Exit notifier */