platform/tun: don't passing around the ifname guess

nm_platform_sysctl_open_netdir() doesn't take it anyways, gets it from
the cache.

CID 160209 (#1 of 1): Unused value (UNUSED_VALUE)
This commit is contained in:
Lubomir Rintel
2017-01-16 15:51:05 +01:00
parent cb8e70546b
commit 5b51a5f260
4 changed files with 7 additions and 21 deletions

View File

@@ -672,7 +672,7 @@ _linktype_get_type (NMPlatform *platform,
NMPlatformTunProperties props;
if ( platform
&& nm_platform_link_tun_get_properties (platform, ifindex, ifname, &props)) {
&& nm_platform_link_tun_get_properties (platform, ifindex, &props)) {
if (!g_strcmp0 (props.mode, "tap"))
return NM_LINK_TYPE_TAP;
if (!g_strcmp0 (props.mode, "tun"))