mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
remove superfluous free() checks
free() correctly handles NULL pointers, so we can omit explicit checks for that condition.
This commit is contained in:
parent
45850439b3
commit
4433248bf3
33 changed files with 108 additions and 205 deletions
|
|
@ -182,8 +182,7 @@ static void private_free(snd_mixer_class_t *class)
|
|||
snd_hctl_close(priv->hctl);
|
||||
} else if (priv->ctl)
|
||||
snd_ctl_close(priv->ctl);
|
||||
if (priv->device)
|
||||
free(priv->device);
|
||||
free(priv->device);
|
||||
free(priv);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue