devices: fix compilation of nm_device_factory_new_link()

We have to return a value.
This commit is contained in:
Jiří Klimeš 2014-03-04 11:04:42 +01:00
parent c1a064b9a3
commit 9e0f4179fd

View file

@ -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);