selftests: ALSA: Fix fclose on an already fclosed file pointer
In the case where a sysfs file cannot be opened the error return path fcloses file pointer fpl, however, fpl has already been closed in the previous stanza. Fix the double fclose by removing it. Fixes: 10b98a4d ("selftests: ALSA: Add test for the 'pcmtest' driver") Signed-off-by:Colin Ian King <colin.i.king@gmail.com> Reviewed-by:
Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230712140122.457206-1-colin.i.king@gmail.com Signed-off-by:
Takashi Iwai <tiwai@suse.de>
Loading
Please register or sign in to comment