From 9e0f4179fddd650bcbee6eddbc04590c3571a888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Tue, 4 Mar 2014 11:04:42 +0100 Subject: [PATCH] devices: fix compilation of nm_device_factory_new_link() We have to return a value. --- src/devices/nm-device-factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/nm-device-factory.c b/src/devices/nm-device-factory.c index 423a26f6a7..e947b9da8e 100644 --- a/src/devices/nm-device-factory.c +++ b/src/devices/nm-device-factory.c @@ -104,8 +104,8 @@ nm_device_factory_new_link (NMDeviceFactory *factory, NMPlatformLink *plink, GError **error) { - g_return_if_fail (factory != NULL); - g_return_if_fail (plink != NULL); + g_return_val_if_fail (factory != NULL, NULL); + g_return_val_if_fail (plink != NULL, NULL); if (NM_DEVICE_FACTORY_GET_INTERFACE (factory)->new_link) return NM_DEVICE_FACTORY_GET_INTERFACE (factory)->new_link (factory, plink, error);