[Spice-devel] [PATCH spice-server 4/9] main-channel: Remove useless check

Victor Toso victortoso at redhat.com
Tue Dec 5 10:12:41 UTC 2017


On Tue, Dec 05, 2017 at 08:41:07AM +0000, Frediano Ziglio wrote:
> If there is a channel client there's surely a related channel.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

Acked-by: Victor Toso <victortoso at redhat.com>

> ---
>  server/main-channel.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/server/main-channel.c b/server/main-channel.c
> index 43ab39ae..f5c079f3 100644
> --- a/server/main-channel.c
> +++ b/server/main-channel.c
> @@ -165,7 +165,6 @@ static bool main_channel_handle_message(RedChannelClient *rcc, uint16_t type,
>                                          uint32_t size, void *message)
>  {
>      RedChannel *channel = red_channel_client_get_channel(rcc);
> -    MainChannel *main_chan = MAIN_CHANNEL(channel);
>      MainChannelClient *mcc = MAIN_CHANNEL_CLIENT(rcc);
>      RedsState *reds = red_channel_get_server(channel);
>  
> @@ -174,9 +173,6 @@ static bool main_channel_handle_message(RedChannelClient *rcc, uint16_t type,
>          SpiceMsgcMainAgentStart *tokens;
>  
>          spice_printerr("agent start");
> -        if (!main_chan) {
> -            return FALSE;
> -        }
>          tokens = (SpiceMsgcMainAgentStart *)message;
>          reds_on_main_agent_start(reds, mcc, tokens->num_tokens);
>          break;
> -- 
> 2.14.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20171205/8e528185/attachment-0001.sig>


More information about the Spice-devel mailing list