Move read_mms_packet() code to be inlined in the calling function.