]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
UPnP: Removed shadowed variable
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 6 Feb 2009 12:05:17 +0000 (14:05 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Feb 2009 12:05:17 +0000 (14:05 +0200)
src/wps/wps_upnp.c

index 5fdd27dfa7f1157e7b32e9a46959f6aef42474dd..00e2bc3c0ea66f99a4396e29299d35777a55b7d2 100644 (file)
@@ -702,7 +702,7 @@ static int subscription_first_event(struct subscription *s)
 struct subscription * subscription_start(struct upnp_wps_device_sm *sm,
                                         char *callback_urls)
 {
-       struct subscription *s = NULL;
+       struct subscription *s;
        time_t now = time(NULL);
        time_t expire = now + UPNP_SUBSCRIBE_SEC;
 
@@ -711,7 +711,7 @@ struct subscription * subscription_start(struct upnp_wps_device_sm *sm,
 
        /* If too many subscriptions, remove oldest */
        if (sm->n_subscriptions >= MAX_SUBSCRIPTIONS) {
-               struct subscription *s = sm->subscriptions;
+               s = sm->subscriptions;
                wpa_printf(MSG_INFO, "WPS UPnP: Too many subscriptions, "
                           "trashing oldest");
                subscription_unlink(s);