Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: oss: delete self assignment

No need to assign "uctl" to itself. Delete it.

Fixes: 55f98ece9939 ("ALSA: oss: Relax __free() variable declarations")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aYXvm2YoV2yRimhk@stanley.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Dan Carpenter and committed by
Takashi Iwai
ee1afacc e3474301

+1 -1
+1 -1
sound/core/oss/mixer_oss.c
··· 792 792 struct snd_ctl_elem_info *uinfo __free(kfree) = 793 793 kzalloc(sizeof(*uinfo), GFP_KERNEL); 794 794 struct snd_ctl_elem_value *uctl __free(kfree) = 795 - uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); 795 + kzalloc(sizeof(*uctl), GFP_KERNEL); 796 796 if (uinfo == NULL || uctl == NULL) 797 797 return -ENOMEM; 798 798 guard(rwsem_read)(&card->controls_rwsem);