diff --git a/pkg/pillar/types/zedroutertypes.go b/pkg/pillar/types/zedroutertypes.go index 4bd738885b9..26e4e561cc5 100644 --- a/pkg/pillar/types/zedroutertypes.go +++ b/pkg/pillar/types/zedroutertypes.go @@ -89,12 +89,7 @@ func (config *AppNetworkConfig) getAppNetAdapterConfig( // IsNetworkUsed returns true if the given network instance is used by this app. func (config *AppNetworkConfig) IsNetworkUsed(network uuid.UUID) bool { - adapterConfig := config.getAppNetAdapterConfig(network) - if adapterConfig != nil { - return true - } - // Network UUID matching neither UL nor OL network - return false + return config.getAppNetAdapterConfig(network) != nil } // AppNetworkStatus : status of app connectivity. @@ -284,9 +279,6 @@ type AppNetAdapterConfig struct { // If there is a parsing error and this AppNetAdapterNetwork config cannot be // processed, set the error here. This allows the error to be propagated // back to zedcloud - // If this is non-empty ( != ""), the UL network Config should not be - // processed further. It Should just be flagged to be in error state - // back to the cloud. Error string Network uuid.UUID // Points to a NetworkInstance. ACLs []ACE