Coverity CID 1539: Remove bogus test that caused array overrun.

This commit is contained in:
christos 2006-04-14 19:03:32 +00:00
parent 63a52e1ca5
commit 8b787180c1
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: eso.c,v 1.41 2005/12/11 12:22:49 christos Exp $ */
/* $NetBSD: eso.c,v 1.42 2006/04/14 19:03:32 christos Exp $ */
/*
* Copyright (c) 1999, 2000, 2004 Klaus J. Klein
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: eso.c,v 1.41 2005/12/11 12:22:49 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: eso.c,v 1.42 2006/04/14 19:03:32 christos Exp $");
#include "mpu.h"
@ -1151,8 +1151,7 @@ eso_get_port(void *hdl, mixer_ctrl_t *cp)
case ESO_MASTER_MUTE:
/* Reload from mixer after hardware volume control use. */
if (sc->sc_gain[cp->dev][ESO_LEFT] == (uint8_t)~0)
eso_reload_master_vol(sc);
eso_reload_master_vol(sc);
cp->un.ord = sc->sc_mvmute;
break;