Fixed #2930 (new check: redundant assignment of pointer function parameter)