You have two variables that aren't actually needed:

* `newNode`: when inserting smaller than the first.

* `prevTmp`: when inserting after while.  It can be `tmpNode`.