Remove two "return"s that return "void" (#41811)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/41811
Reviewed By: izdeby
Differential Revision: D22673690
Pulled By: ezyang
fbshipit-source-id: 10d4aff90e2e051116e682fa51fb9494af8482c1