From: Michal Privoznik <mprivozn(a)redhat.com>
Inside of virSecurityDACGenLabel() there's a switch() statement
and the variable it uses is typecasted to virDomainSeclabelType.
Well, as of v7.10.0-rc1~26 the variable is already of that type
rendering the typecast needless. Drop it.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/security/security_dac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/security/security_dac.c b/src/security/security_dac.c
index 8fb26168ca..98a64bd0ce 100644
--- a/src/security/security_dac.c
+++ b/src/security/security_dac.c
@@ -2404,7 +2404,7 @@ virSecurityDACGenLabel(virSecurityManager *mgr,
return rc;
}
- switch ((virDomainSeclabelType)seclabel->type) {
+ switch (seclabel->type) {
case VIR_DOMAIN_SECLABEL_STATIC:
if (seclabel->label == NULL) {
virReportError(VIR_ERR_INTERNAL_ERROR,
--
2.49.1