radeonsi: no need to call si_pm4_clear_state() in si_pm4_free_state()

the si_pm4_clear_state() initializes the variable in struct si_pm4_state which
anyway gets freed in si_pm4_free_state(). Hence no need to call
si_pm4_clear_state() in si_pm4_free_state().

Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17504>
This commit is contained in:
Yogesh Mohan Marimuthu 2022-07-13 08:51:56 +05:30 committed by Marge Bot
parent 2330c71751
commit 1c2ca3cfb7

View file

@ -131,7 +131,6 @@ void si_pm4_free_state(struct si_context *sctx, struct si_pm4_state *state, unsi
}
}
si_pm4_clear_state(state);
FREE(state);
}