alsa: fix scan-build errors for unused variables

All cases of value stored but never read
This commit is contained in:
Peter Hutterer 2021-05-10 10:50:12 +10:00 committed by Wim Taymans
parent 6d19dd0162
commit 4dd886188a
4 changed files with 8 additions and 8 deletions

View file

@ -141,7 +141,7 @@ static uint32_t get_card_id(struct impl *this, struct udev_device *dev)
if ((str = udev_device_get_property_value(dev, "SOUND_CLASS")) && spa_streq(str, "modem"))
return SPA_ID_INVALID;
if ((str = udev_device_get_property_value(dev, "SOUND_INITIALIZED")) == NULL)
if (udev_device_get_property_value(dev, "SOUND_INITIALIZED") == NULL)
return SPA_ID_INVALID;
if ((str = udev_device_get_property_value(dev, "DEVPATH")) == NULL)