ALSA: oss: delete self assignment
Subsystems (2)
PATCH 1/1 ALSA: oss: delete self assignment
No need to assign "uctl" to itself. Delete it.
Signed-off-by Dan Carpenter <[email protected]>
--- sound/core/oss/mixer_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/oss/mixer_oss.c +1 -1
@@ -792,7 +792,7 @@ static int snd_mixer_oss_get_recsrc2(struct snd_mixer_oss_file *fmixer, unsigned struct snd_ctl_elem_info *uinfo __free(kfree) =kzalloc (sizeof (*uinfo),GFP_KERNEL ); struct snd_ctl_elem_value *uctl __free(kfree) = - uctl =kzalloc (sizeof (*uctl),GFP_KERNEL ); +kzalloc (sizeof (*uctl),GFP_KERNEL );if (uinfo ==NULL || uctl ==NULL )return -ENOMEM ;guard (rwsem_read)(&card->controls_rwsem);
Signature · 1 line
2.51.0
Quoted 4 lines · Dan Carpenter
No need to assign "uctl" to itself. Delete it.
Signed-off-by Dan Carpenter <[email protected]>
Thanks, it's a garbage at the previous fix commit 55f98ece9939 ("ALSA:
oss: Relax __free() variable declarations"). So I applied with a Fixes tag.
Takashi