Remove redundant function return code