git: 2db2292dac73 - main - sound: Get rid of redundant assignments in chn_init()

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Mon, 20 May 2024 14:14:42 UTC
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=2db2292dac7331be5414f86c3ef7863c7b6a4ac6

commit 2db2292dac7331be5414f86c3ef7863c7b6a4ac6
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2024-05-20 14:14:17 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-05-20 14:14:17 +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
---
 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;