From 58459b2d0620a149e392b63256830d8476454f7f Mon Sep 17 00:00:00 2001 From: rpaulo Date: Sat, 10 Jun 2006 12:29:39 +0000 Subject: [PATCH] KNF. --- sys/dev/pci/eap.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sys/dev/pci/eap.c b/sys/dev/pci/eap.c index 7e802b45ab7e..0ccb4ef26c99 100644 --- a/sys/dev/pci/eap.c +++ b/sys/dev/pci/eap.c @@ -1,4 +1,4 @@ -/* $NetBSD: eap.c,v 1.81 2005/12/24 20:27:42 perry Exp $ */ +/* $NetBSD: eap.c,v 1.82 2006/06/10 12:29:39 rpaulo Exp $ */ /* $OpenBSD: eap.c,v 1.6 1999/10/05 19:24:42 csapuntz Exp $ */ /* @@ -57,7 +57,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.81 2005/12/24 20:27:42 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.82 2006/06/10 12:29:39 rpaulo Exp $"); #include "midi.h" #include "joy_eap.h" @@ -1097,17 +1097,17 @@ eap_set_params(void *addr, int setmode, int usemode, * This only applies for ADC/DAC2. The FM DAC is handled below. */ if (!sc->sc_1371 && ei->index == EAP_DAC2) { - if (play->sample_rate != rec->sample_rate && - usemode == (AUMODE_PLAY | AUMODE_RECORD)) { - if (setmode == AUMODE_PLAY) { - rec->sample_rate = play->sample_rate; - setmode |= AUMODE_RECORD; - } else if (setmode == AUMODE_RECORD) { - play->sample_rate = rec->sample_rate; - setmode |= AUMODE_PLAY; - } else - return EINVAL; - } + if (play->sample_rate != rec->sample_rate && + usemode == (AUMODE_PLAY | AUMODE_RECORD)) { + if (setmode == AUMODE_PLAY) { + rec->sample_rate = play->sample_rate; + setmode |= AUMODE_RECORD; + } else if (setmode == AUMODE_RECORD) { + play->sample_rate = rec->sample_rate; + setmode |= AUMODE_PLAY; + } else + return EINVAL; + } } for (mode = AUMODE_RECORD; mode != -1;