Remove unnecessary return.
Cleanup of write_packet method.