diff --git a/src/security/security_dac.c b/src/security/security_dac.c index 3dc15040ad..39bd6cb900 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -1042,9 +1042,8 @@ virSecurityDACGenLabel(virSecurityManagerPtr mgr, virSecurityDACDataPtr priv = virSecurityManagerGetPrivateData(mgr); seclabel = virDomainDefGetSecurityLabelDef(def, SECURITY_DAC_NAME); - if (seclabel == NULL) { + if (seclabel == NULL) return rc; - } if (seclabel->imagelabel) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s",