Remove unnecessary call to `default_port()`

`default_port(mode)` was already called on line 83. Since `mode` does
not change for the rest of this function, remove the unnecessary call.