Remove redundant assignments

* encoding.c - Remove redundant assignments
* regparse.c - Remove redundant assignments