mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: simplify a condition
`a || (!a && b)` equals `a || b` due to the short-circuiting nature of `||` and `&&`.
This commit is contained in:
parent
6d0075b4e9
commit
5db2c6cc32
1 changed files with 1 additions and 1 deletions
|
|
@ -2159,7 +2159,7 @@ static int do_finish_upload_stream(struct client *client, uint32_t command, uint
|
|||
channel, name);
|
||||
|
||||
struct sample *old = find_sample(impl, SPA_ID_INVALID, name);
|
||||
if (old == NULL || (old != NULL && old->ref > 1)) {
|
||||
if (old == NULL || old->ref > 1) {
|
||||
sample = calloc(1, sizeof(*sample));
|
||||
if (sample == NULL)
|
||||
goto error_errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue