audio/pw: needless check for NULL
g_clear_pointer() already checks for NULL. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Volker Rümelin <vr_qemu@t-online.de> Message-Id: <20230506163735.3481387-6-marcandre.lureau@redhat.com>
This commit is contained in:
parent
2d216959e1
commit
3b2876086b
@ -834,12 +834,8 @@ fail:
|
|||||||
if (pw->thread_loop) {
|
if (pw->thread_loop) {
|
||||||
pw_thread_loop_stop(pw->thread_loop);
|
pw_thread_loop_stop(pw->thread_loop);
|
||||||
}
|
}
|
||||||
if (pw->context) {
|
g_clear_pointer(&pw->context, pw_context_destroy);
|
||||||
g_clear_pointer(&pw->context, pw_context_destroy);
|
g_clear_pointer(&pw->thread_loop, pw_thread_loop_destroy);
|
||||||
}
|
|
||||||
if (pw->thread_loop) {
|
|
||||||
g_clear_pointer(&pw->thread_loop, pw_thread_loop_destroy);
|
|
||||||
}
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user