red-channel-client: Inline red_channel_client_get_channel in macro

Inline red_channel_client_get_channel in spice_channel_client_error
macro.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-09-07 18:34:31 +01:00
parent 609398fb77
commit 6ccf0e4800

View File

@ -178,8 +178,7 @@ static bool red_channel_client_config_socket(RedChannelClient *rcc);
*/
#define spice_channel_client_error(rcc, format, ...) \
do { \
RedChannel *_ch = red_channel_client_get_channel(rcc); \
red_channel_warning(_ch, format, ## __VA_ARGS__); \
red_channel_warning(rcc->priv->channel, format, ## __VA_ARGS__); \
red_channel_client_shutdown(rcc); \
} while (0)