[spice-server,2/2] red-channel-client: Inline red_channel_client_get_channel in macro

Submitted by Frediano Ziglio on Sept. 11, 2019, 7:55 a.m.

Details

Message ID 20190911075547.5210-2-fziglio@redhat.com
State Accepted
Commit 6ccf0e48007c253195aae2aa2c8ea2af419430d6
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Sept. 11, 2019, 7:55 a.m.
Inline red_channel_client_get_channel in spice_channel_client_error
macro.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/red-channel-client.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index 337733d5d..2fee76f57 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -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)