Assignment of function parameter has no effect outside the function.

Found by Cppcheck

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>