Skip to contentSkip to conversation

device: Fix init return type

PATCH In review Tim Kourt 2 participants 3 messages Apr 17, 2020

lore
Share & tools
lore

Tim Kourt

author
#0 lore raw

PATCH 1/2 device: Fix init return type

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/device.c +1 -1
index c24d7ed1..171a11b6 100644
@@ -420,7 +420,7 @@ static int device_init(void)
 					IWD_DEVICE_INTERFACE,
 					setup_device_interface,
 					destroy_device_interface, false))
-		return false;
+		return -EPERM;
 
 	netdev_watch = netdev_watch_add(device_netdev_notify, NULL, NULL);
 
Signature · 1 line
2.13.6
author
#1 lore raw

PATCH 2/2 station: Fix init return type

---
 src/station.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/station.c +1 -1
index d57a0f8d..3b3bb30a 100644
@@ -3250,7 +3250,7 @@ static int station_init(void)
 				&anqp_disabled))
 		anqp_disabled = true;
 
-	return true;
+	return 0;
 }
 
 static void station_exit(void)
Signature · 1 line
2.13.6