git: 8a15d5e7223d - stable/14 - sound: Get rid of redundant assignments in chn_init()

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Tue, 21 May 2024 17:53:54 UTC
The branch stable/14 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=8a15d5e7223d0df2cbba63ad0b1ea453d528e711

commit 8a15d5e7223d0df2cbba63ad0b1ea453d528e711
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2024-05-20 14:14:17 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-05-21 17:45:30 +0000

    sound: Get rid of redundant assignments in chn_init()
    
    c is allocated with M_ZERO.
    
    Reported by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 day
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D45273
    
    (cherry picked from commit 2db2292dac7331be5414f86c3ef7863c7b6a4ac6)
---
 sys/dev/sound/pcm/channel.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index 846885b9d729..039d9abb9da2 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -1261,8 +1261,6 @@ chn_init(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls,
 	bs = NULL;
 	CHN_INIT(c, children);
 	CHN_INIT(c, children.busy);
-	c->devinfo = NULL;
-	c->feeder = NULL;
 	c->latency = -1;
 	c->timeout = 1;