[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] test-vmstate: remove unnecessary code in match_interval_mapp
From: |
Laurent Vivier |
Subject: |
Re: [PATCH] test-vmstate: remove unnecessary code in match_interval_mapping_node |
Date: |
Thu, 10 Sep 2020 08:55:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
Le 10/09/2020 à 04:38, Pan Nengyuan a écrit :
> 'str' is not used in match_interval_mapping_node(), remove it.
>
> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
> ---
> tests/test-vmstate.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c
> index f8de709a0b..1c763015d0 100644
> --- a/tests/test-vmstate.c
> +++ b/tests/test-vmstate.c
> @@ -1055,9 +1055,6 @@ static gboolean match_interval_mapping_node(gpointer
> key,
> TestGTreeMapping *map_a, *map_b;
> TestGTreeInterval *a, *b;
> struct match_node_data *d = (struct match_node_data *)data;
> - char *str = g_strdup_printf("dest");
> -
> - g_free(str);
> a = (TestGTreeInterval *)key;
> b = (TestGTreeInterval *)d->key;
>
>
Applied to my trivial-patches branch.
Thanks,
Laurent