imv-os-agent: Remove useless assignment
`eval` will never be TNC_IMV_EVALUATION_RESULT_DONT_KNOW so we can remove the if statement too.
This commit is contained in:
parent
ddc797686f
commit
1295558ab3
|
@ -686,7 +686,6 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
|
|||
{
|
||||
continue;
|
||||
}
|
||||
eval = TNC_IMV_EVALUATION_RESULT_DONT_KNOW;
|
||||
|
||||
switch (workitem->get_type(workitem))
|
||||
{
|
||||
|
@ -749,15 +748,12 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
|
|||
default:
|
||||
continue;
|
||||
}
|
||||
if (eval != TNC_IMV_EVALUATION_RESULT_DONT_KNOW)
|
||||
{
|
||||
session->remove_workitem(session, enumerator);
|
||||
rec = workitem->set_result(workitem, result_str, eval);
|
||||
state->update_recommendation(state, rec, eval);
|
||||
imcv_db->finalize_workitem(imcv_db, workitem);
|
||||
workitem->destroy(workitem);
|
||||
}
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
/* finalized all workitems ? */
|
||||
|
|
Loading…
Reference in New Issue