mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-16 22:05:18 -05: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
|
|
@ -1388,8 +1388,7 @@ int snd_mixer_simple_none_register(snd_mixer_t *mixer,
|
|||
snd_mixer_class_set_compare(class, snd_mixer_selem_compare);
|
||||
err = snd_mixer_class_register(class, mixer);
|
||||
if (err < 0) {
|
||||
if (class)
|
||||
free(class);
|
||||
free(class);
|
||||
return err;
|
||||
}
|
||||
if (classp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue