mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
nodeinfo: Use sa_assert() instead of Coverity error tag
This commit is contained in:
parent
abbec81bd0
commit
7489a9c340
@ -1124,8 +1124,8 @@ nodeSetMemoryParameterValue(virTypedParameterPtr param)
|
||||
int ret = -1;
|
||||
int rc = -1;
|
||||
|
||||
/* coverity[returned_null] */
|
||||
char *field = strchr(param->field, '_');
|
||||
sa_assert(field);
|
||||
field++;
|
||||
if (virAsprintf(&path, "%s/%s",
|
||||
SYSFS_MEMORY_SHARED_PATH, field) < 0) {
|
||||
@ -1162,8 +1162,8 @@ nodeMemoryParametersIsAllSupported(virTypedParameterPtr params,
|
||||
for (i = 0; i < nparams; i++) {
|
||||
virTypedParameterPtr param = ¶ms[i];
|
||||
|
||||
/* coverity[returned_null] */
|
||||
char *field = strchr(param->field, '_');
|
||||
sa_assert(field);
|
||||
field++;
|
||||
if (virAsprintf(&path, "%s/%s",
|
||||
SYSFS_MEMORY_SHARED_PATH, field) < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user