Fix function declaration
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 15 Oct 2008 19:43:30 +0000 (21:43 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 15 Oct 2008 19:43:30 +0000 (21:43 +0200)
src/device.c

index 6b73438..0e2cf59 100644 (file)
@@ -72,7 +72,7 @@ static int device_probe(struct connman_element *element)
        return -ENODEV;
 }
 
-static int device_remove(struct connman_element *element)
+static void device_remove(struct connman_element *element)
 {
        struct connman_device *device = connman_element_get_data(element);
 
@@ -84,8 +84,6 @@ static int device_remove(struct connman_element *element)
        connman_element_set_data(element, NULL);
 
        g_free(device);
-
-       return 0;
 }
 
 static struct connman_driver device_driver = {