removed useless return to avoid cppcheck error

removed useless return to avoid cppcheck error