Optimization of LinySys::get_rhs method.

-remove -Wreturn-type warning
Remove compiler warnings.

- remove warning -Wreturn-type