introduce a temporary variable for tmp->chan to shorten expressions.