[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220801022948.1594777-1-ye.xingchen@zte.com.cn>
Date: Mon, 1 Aug 2022 02:29:48 +0000
From: cgel.zte@...il.com
To: linux-kernel@...r.kernel.org
Cc: ye xingchen <ye.xingchen@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] comedi:Remove the no effect conditional statements
From: ye xingchen <ye.xingchen@....com.cn>
Conditional statements have no effect to next process.So remove it.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: ye xingchen <ye.xingchen@....com.cn>
---
drivers/comedi/drivers/das1800.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/comedi/drivers/das1800.c b/drivers/comedi/drivers/das1800.c
index f09608c0f4ff..2e6dad7b20aa 100644
--- a/drivers/comedi/drivers/das1800.c
+++ b/drivers/comedi/drivers/das1800.c
@@ -1297,12 +1297,6 @@ static int das1800_attach(struct comedi_device *dev,
outb(DAC(i), dev->iobase + DAS1800_SELECT);
outw(0, dev->iobase + DAS1800_DAC);
}
- } else if (board->id == DAS1800_ID_AO) {
- /*
- * 'ao' boards have waveform analog outputs that are not
- * currently supported.
- */
- s->type = COMEDI_SUBD_UNUSED;
} else {
s->type = COMEDI_SUBD_UNUSED;
}
--
2.25.1
Powered by blists - more mailing lists