MCPcopy Create free account
hub / github.com/coreboot/coreboot / vs_delete

Function vs_delete

util/smmstoretool/vs.c:213–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void vs_delete(struct var_store_t *vs, struct var_t *var)
214{
215 if (vs->vars == var) {
216 vs->vars = var->next;
217 free_var(var);
218 return;
219 }
220
221 for (struct var_t *v = vs->vars; v != NULL; v = v->next) {
222 if (v->next == var) {
223 v->next = var->next;
224 free_var(var);
225 return;
226 }
227 }
228}
229
230void vs_free(struct var_store_t *vs)
231{

Callers 1

process_removeFunction · 0.85

Calls 1

free_varFunction · 0.85

Tested by

no test coverage detected