ams: use R_SUCCEED, R_THROW globally
This commit is contained in:
@@ -61,7 +61,7 @@ namespace ams::htc::server::driver {
|
||||
m_manager->SetReceiveBuffer(GetHtclowChannel(channel, m_module_id), receive_buffer, receive_buffer_size);
|
||||
m_manager->SetSendBuffer(GetHtclowChannel(channel, m_module_id), send_buffer, send_buffer_size);
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
void HtclowDriver::Close(htclow::ChannelId channel) {
|
||||
@@ -84,7 +84,7 @@ namespace ams::htc::server::driver {
|
||||
/* Finish connecting. */
|
||||
R_TRY(m_manager->ConnectEnd(GetHtclowChannel(channel, m_module_id), task_id));
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
void HtclowDriver::Shutdown(htclow::ChannelId channel) {
|
||||
@@ -117,7 +117,7 @@ namespace ams::htc::server::driver {
|
||||
/* Set the output sent size. */
|
||||
*out = static_cast<s64>(sent);
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result HtclowDriver::ReceiveInternal(size_t *out, void *dst, size_t dst_size, htclow::ChannelId channel, htclow::ReceiveOption option) {
|
||||
@@ -173,7 +173,7 @@ namespace ams::htc::server::driver {
|
||||
/* Set the output received size. */
|
||||
*out = static_cast<s64>(received);
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
htclow::ChannelState HtclowDriver::GetChannelState(htclow::ChannelId channel) {
|
||||
|
||||
Reference in New Issue
Block a user