Skip to content

Commit cabf76f

Browse files
committed
sound: Remove redundant check in mixer_clone()
PCM_REGISTERED() does this check through PCM_ALIVE(). Sponsored by: The FreeBSD Foundation MFC after: 1 week
1 parent 59c529f commit cabf76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/dev/sound/pcm/mixer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ mixer_clone(void *arg,
13651365
bus_topo_lock();
13661366
d = devclass_get_softc(pcm_devclass, snd_unit);
13671367
/* See related comment in dsp_clone(). */
1368-
if (d != NULL && PCM_REGISTERED(d) && d->mixer_dev != NULL) {
1368+
if (PCM_REGISTERED(d) && d->mixer_dev != NULL) {
13691369
*dev = d->mixer_dev;
13701370
dev_ref(*dev);
13711371
}

0 commit comments

Comments
 (0)