The fact that he associated himself with the Foot Clan doesn't necessarily mean there was something shady about him. People are multi-dimensional. He might not have even been aware that there was corruption in the clan. Besides, he left when they wanted him to commit hari kari or seppuku or whatever because he defended the virtue of a woman. So it isn't like his allegiance to the Foot knew no bounds. Yoshi was a man of honor.
I wonder what happened in the timeline that Oroku Yoshi comes from...