if that was the case then how did Ao even figure out that danzo was controlling mifune? having sharingan is not a crime coz Ao himself had a stolen byakugan... Ao saw danzo manipulating mifune and mifune didn't make him the commander as explainedHe got out of KA because Danzo undone it. He got spotted by Ao.
Or Danzo simply didn't give Mifune a complex/lengthed order, such as go there, do this, do that and kill this. Danzo only needed Mifune to talk using former's own thoughts, which he successfully transfered to the latter's mind, for a little while.
You could say that KA effect ends once the order, that was given to the victim, is completely fullfilled.
Mifune: I might have chosen you anyway hokage, then why?
Danzo: i had to make sure of it.... thus danzo did use KA and mifune got out...