Terminal term{fd};
if (llvm::Error error = term.SetRaw())
- return error;
+ return std::move(error);
if (serial_options.BaudRate) {
if (llvm::Error error =
term.SetBaudRate(serial_options.BaudRate.getValue()))
- return error;
+ return std::move(error);
}
if (serial_options.Parity) {
if (llvm::Error error = term.SetParity(serial_options.Parity.getValue()))
- return error;
+ return std::move(error);
}
if (serial_options.StopBits) {
if (llvm::Error error =
term.SetStopBits(serial_options.StopBits.getValue()))
- return error;
+ return std::move(error);
}
return out;