shared/trivial: add code comment to nm_utils_ifname_valid_kernel()

This commit is contained in:
Thomas Haller 2020-02-18 13:03:50 +01:00
parent 82fb8b00b4
commit eb74d5f65f

View file

@ -4053,6 +4053,10 @@ nm_utils_ifname_valid_kernel (const char *name, GError **error)
{
int i;
/* This function follows kernel's interface validation
* function dev_valid_name() in net/core/dev.c.
*/
if (!name) {
g_set_error_literal (error, NM_UTILS_ERROR, NM_UTILS_ERROR_UNKNOWN,
_("interface name is missing"));