Revert "platform: detect missing firmware on IFF_UP change"

This reverts commit 01b95ef293.
This commit is contained in:
Pavel Šimerda
2013-05-24 00:56:48 +02:00
parent 01b95ef293
commit 3f57ee53bc
3 changed files with 0 additions and 12 deletions

View File

@@ -886,14 +886,6 @@ link_change (NMPlatform *platform, int ifindex, struct rtnl_link *change)
nle = rtnl_link_change (priv->nlh, rtnllink, change, 0);
/* When netlink returns this error, it usually means it failed to find
* firmware for the device, especially on nm_platform_link_set_up ().
* This is basically the same check as in the original code and could
* potentially be improved.
*/
if (nle == -NLE_NOT_FOUND)
return NM_PLATFORM_ERROR_NO_FIRMWARE;
return refresh_object (platform, (struct nl_object *) rtnllink, nle);
}

View File

@@ -177,8 +177,6 @@ nm_platform_get_error_msg (void)
return "object already exists";
case NM_PLATFORM_ERROR_NOT_SLAVE:
return "link not a slave";
case NM_PLATFORM_ERROR_NO_FIRMWARE:
return "firmware not found";
default:
return "invalid error number";
}

View File

@@ -43,8 +43,6 @@ typedef enum {
NM_PLATFORM_ERROR_EXISTS,
/* object is not a slave */
NM_PLATFORM_ERROR_NOT_SLAVE
/* firmware is not found */
NM_PLATFORM_ERROR_NO_FIRMWARE
} NMPlatformError;
typedef enum {