uart: change to call uart flush with void return type