Resolve Coverity dead_error_begin

Coverity complains about default: label in libxl_driver.c not be able
to be reached. It's by design for the code and since it's not necessary
in the code nor does it elicit any compiler/make check warnings - just
remove it rather than adding a coverity[dead_error_begin] tag.

While I'm at it, lxc_driver.c and nodeinfo.c have the same design, so I
removed the default labels and the existing coverity tags.
This commit is contained in:
John Ferlan 2014-01-31 11:32:28 -05:00
parent e60b36cb0d
commit 5c36e63198
3 changed files with 0 additions and 22 deletions

View File

@ -4167,9 +4167,6 @@ libxlDomainGetNumaParameters(virDomainPtr dom,
nodeset = NULL;
break;
default:
break;
}
}

View File

@ -950,11 +950,6 @@ lxcDomainGetMemoryParameters(virDomainPtr dom,
VIR_TYPED_PARAM_ULLONG, val) < 0)
goto cleanup;
break;
/* coverity[dead_error_begin] */
default:
break;
/* should not hit here */
}
}
@ -2626,11 +2621,6 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
param->value.s) < 0)
goto cleanup;
break;
/* coverity[dead_error_begin] */
default:
break;
/* should not hit here */
}
}
} else if (flags & VIR_DOMAIN_AFFECT_CONFIG) {
@ -2818,11 +2808,6 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
goto cleanup;
}
break;
/* coverity[dead_error_begin] */
default:
break;
/* should not hit here */
}
}
}

View File

@ -1478,10 +1478,6 @@ nodeGetMemoryParameters(virTypedParameterPtr params ATTRIBUTE_UNUSED,
return -1;
break;
/* coverity[dead_error_begin] */
default:
break;
}
}