OSDN Git Service

obexd/service: Remove unused local variable
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 4 Oct 2013 09:05:33 +0000 (11:05 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 4 Oct 2013 11:10:33 +0000 (14:10 +0300)
This fix following build error:

  CC     obexd/src/obexd-service.o
obexd/src/service.c: In function ‘obex_service_driver_register’:
obexd/src/service.c:100:10: error: unused variable ‘l’ [-Werror=unused-variable]

obexd/src/service.c

index 6b8533b..c088535 100644 (file)
@@ -97,8 +97,6 @@ static struct obex_service_driver *find_driver(uint16_t service)
 
 int obex_service_driver_register(struct obex_service_driver *driver)
 {
-       GSList *l;
-
        if (!driver) {
                error("Invalid driver");
                return -EINVAL;