mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
avoid some useless assignments
This commit is contained in:
parent
4f60dcadc6
commit
eb93f259e0
7 changed files with 10 additions and 13 deletions
|
|
@ -425,7 +425,7 @@ static void v4l2_udev_object_info(void *data, uint32_t id,
|
|||
return;
|
||||
v4l2_remove_device(impl, dev);
|
||||
} else if (dev == NULL) {
|
||||
if ((dev = v4l2_create_device(impl, id, info)) == NULL)
|
||||
if (v4l2_create_device(impl, id, info) == NULL)
|
||||
return;
|
||||
} else {
|
||||
v4l2_update_device(impl, dev, info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue