Deleted unnecessary `if` checking.

The `cur->next` from the following code provides the same functionality.
`for (TreeLinkNode *cur = root; cur->next; cur = cur->next)`
Merge pull request #1 from Mooophy/master

> Deleted unnecessary `if` checking.

Thx for pointing out my carelessness.