Tag: 4b3be6afa4ab8b3fdce39df68bad71f8b85164de

ALSA: sound: Move dereference after NULL test and drop unnecessary NULL tests

Author: Julia Lawall <julia@diku.dk> In pcm.c, if the NULL test on pcm is needed, then the dereference should be after the NULL test. In dummy.c and ali5451.c, the context of the calls to snd_card_dummy_new_mixer and snd_ali_free_voice show that dummy and pvoice, respectively cannot be NULL. A simplified version of the semantic match that detects this …

Continue reading