From 15e87b80f3bc129675433f2282668b35ccf79720 Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Thu, 13 Feb 2020 18:10:08 +0100 Subject: [PATCH] nm-setting-ovs-interface: remove unneeded check on 'self' 'self' is guaranteed of being not-NULL since we have the assertion 'g_return_val_if_fail (NM_IS_SETTING_OVS_INTERFACE (self),FALSE);' at the beginning of the function. --- libnm-core/nm-setting-ovs-interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm-core/nm-setting-ovs-interface.c b/libnm-core/nm-setting-ovs-interface.c index 8b341e928f..e8e73a9d17 100644 --- a/libnm-core/nm-setting-ovs-interface.c +++ b/libnm-core/nm-setting-ovs-interface.c @@ -84,7 +84,7 @@ _nm_setting_ovs_interface_verify_interface_type (NMSettingOvsInterface *self, NM_SET_OUT (out_modified, FALSE); - type = self ? self->type : NULL; + type = self->type; if ( type && !NM_IN_STRSET (type, "internal", "system", "patch", "dpdk")) {