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:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user