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:
Tobias Brunner
2018-09-17 18:51:42 +02:00
parent ddc797686f
commit 1295558ab3
@@ -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,15 +748,12 @@ 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); session->remove_workitem(session, enumerator);
rec = workitem->set_result(workitem, result_str, eval); rec = workitem->set_result(workitem, result_str, eval);
state->update_recommendation(state, rec, eval); state->update_recommendation(state, rec, eval);
imcv_db->finalize_workitem(imcv_db, workitem); imcv_db->finalize_workitem(imcv_db, workitem);
workitem->destroy(workitem); workitem->destroy(workitem);
} }
}
enumerator->destroy(enumerator); enumerator->destroy(enumerator);
/* finalized all workitems ? */ /* finalized all workitems ? */