OSDN Git Service

obexd/bluetooth: Remove unused local variables
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 4 Oct 2013 09:05:25 +0000 (11:05 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 4 Oct 2013 09:21:52 +0000 (12:21 +0300)
This ix following build errors:

  CC     obexd/plugins/obexd-bluetooth.o
obexd/plugins/bluetooth.c: In function ‘register_profile_reply’:
obexd/plugins/bluetooth.c:202:10: error: unused variable ‘err’
    [-Werror=unused-variable]

obexd/plugins/bluetooth.c: In function ‘name_acquired’:
obexd/plugins/bluetooth.c:367:15: error: unused variable ‘uuid’
    [-Werror=unused-variable]

obexd/plugins/bluetooth.c: In function ‘name_released’:
obexd/plugins/bluetooth.c:389:15: error: unused variable ‘uuid’
    [-Werror=unused-variable]

obexd/plugins/bluetooth.c: In function ‘bluetooth_start’:
obexd/plugins/bluetooth.c:400:10: error: unused variable ‘ios’
    [-Werror=unused-variable]

obexd/plugins/bluetooth.c

index 017ff60..7f8a26d 100644 (file)
@@ -199,7 +199,6 @@ static void register_profile_reply(DBusPendingCall *call, void *user_data)
        struct bluetooth_profile *profile = user_data;
        DBusMessage *reply = dbus_pending_call_steal_reply(call);
        DBusError derr;
-       GError *err = NULL;
 
        dbus_error_init(&derr);
        if (!dbus_set_error_from_message(&derr, reply)) {
@@ -364,7 +363,6 @@ static void name_acquired(DBusConnection *conn, void *user_data)
 
        for (l = profiles; l; l = l->next) {
                struct bluetooth_profile *profile = l->data;
-               const char *uuid;
 
                if (profile->path != NULL)
                        continue;
@@ -386,7 +384,6 @@ static void name_released(DBusConnection *conn, void *user_data)
 
        for (l = profiles; l; l = l->next) {
                struct bluetooth_profile *profile = l->data;
-               const char *uuid;
 
                if (profile->path == NULL)
                        continue;
@@ -397,7 +394,6 @@ static void name_released(DBusConnection *conn, void *user_data)
 
 static void *bluetooth_start(struct obex_server *server, int *err)
 {
-       GSList *ios = NULL;
        const GSList *l;
 
        for (l = server->drivers; l; l = l->next) {