From e67a7fb913ae396a71696f913040ee0cae89d3e8 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakivskyy Date: Tue, 10 Apr 2012 15:17:24 +0300 Subject: [PATCH] call-forwarding: Get rid of extra variable --- src/call-forwarding.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/call-forwarding.c b/src/call-forwarding.c index b43e043..0733f76 100644 --- a/src/call-forwarding.c +++ b/src/call-forwarding.c @@ -120,12 +120,11 @@ static int cf_find_timeout(GSList *cf_list, int cls) return c->time; } -static void cf_cond_list_print(GSList *list) +static void cf_cond_list_print(GSList *l) { - GSList *l; struct ofono_call_forwarding_condition *cond; - for (l = list; l; l = l->next) { + for (; l ; l = l->next) { cond = l->data; DBG("CF Condition status: %d, class: %d, number: %s," -- 2.7.4