Moving money around in an (apparently) pointless fashion is not illegal per se, but may indicate money laundering so the Feds may check up on you. The result can be that they determine no laundering is going on, as suggested above.
It's like the deal with cash transactions over $10k. They aren't illegal, but will generate some scrutiny.