mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 23:00:07 +01:00
cli: trivial; use mtu variable instead of calling *_get_mtu() again
This commit is contained in:
parent
6993b5b2a1
commit
8bcc68a00b
1 changed files with 3 additions and 3 deletions
|
|
@ -1079,7 +1079,7 @@ nmc_property_ib_get_mtu (NMSetting *setting)
|
|||
if (mtu == 0)
|
||||
return g_strdup (_("auto"));
|
||||
else
|
||||
return g_strdup_printf ("%d", nm_setting_infiniband_get_mtu (s_infiniband));
|
||||
return g_strdup_printf ("%d", mtu);
|
||||
}
|
||||
|
||||
static char *
|
||||
|
|
@ -1262,7 +1262,7 @@ nmc_property_wired_get_mtu (NMSetting *setting)
|
|||
if (mtu == 0)
|
||||
return g_strdup (_("auto"));
|
||||
else
|
||||
return g_strdup_printf ("%d", nm_setting_wired_get_mtu (s_wired));
|
||||
return g_strdup_printf ("%d", mtu);
|
||||
}
|
||||
|
||||
/* --- NM_SETTING_WIRELESS_SETTING_NAME property get functions --- */
|
||||
|
|
@ -1303,7 +1303,7 @@ nmc_property_wireless_get_mtu (NMSetting *setting)
|
|||
if (mtu == 0)
|
||||
return g_strdup (_("auto"));
|
||||
else
|
||||
return g_strdup_printf ("%d", nm_setting_wireless_get_mtu (s_wireless));
|
||||
return g_strdup_printf ("%d", mtu);
|
||||
}
|
||||
|
||||
/* --- NM_SETTING_WIRELESS_SECURITY_SETTING_NAME property get functions --- */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue