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:
@@ -686,7 +686,6 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
eval = TNC_IMV_EVALUATION_RESULT_DONT_KNOW;
|
|
||||||
|
|
||||||
switch (workitem->get_type(workitem))
|
switch (workitem->get_type(workitem))
|
||||||
{
|
{
|
||||||
@@ -749,14 +748,11 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
|
|||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (eval != TNC_IMV_EVALUATION_RESULT_DONT_KNOW)
|
session->remove_workitem(session, enumerator);
|
||||||
{
|
rec = workitem->set_result(workitem, result_str, eval);
|
||||||
session->remove_workitem(session, enumerator);
|
state->update_recommendation(state, rec, eval);
|
||||||
rec = workitem->set_result(workitem, result_str, eval);
|
imcv_db->finalize_workitem(imcv_db, workitem);
|
||||||
state->update_recommendation(state, rec, eval);
|
workitem->destroy(workitem);
|
||||||
imcv_db->finalize_workitem(imcv_db, workitem);
|
|
||||||
workitem->destroy(workitem);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user