Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74c7c503 authored by Jake Champlin's avatar Jake Champlin Committed by Greg Kroah-Hartman
Browse files

Staging: Comedi: pcl818: Fixed Coding Style Issues



Fixed single line if statement brace issues as well as pointer errors from
checkpatch.pl

Signed-off-by: default avatarJake Champlin <jake.champlin.27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3d139038
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -243,8 +243,8 @@ static const struct comedi_lrange range_pcl818l_h_ai = { 4, {
};

static const struct comedi_lrange range718_bipolar1 = { 1, {BIP_RANGE(1),} };
static const struct comedi_lrange range718_bipolar0_5 =
    { 1, {BIP_RANGE(0.5),} };
static const struct comedi_lrange range718_bipolar0_5 = {
	1, {BIP_RANGE(0.5),} };
static const struct comedi_lrange range718_unipolar2 = { 1, {UNI_RANGE(2),} };
static const struct comedi_lrange range718_unipolar1 = { 1, {BIP_RANGE(1),} };

@@ -1005,17 +1005,14 @@ static int pcl818_ai_cmd_mode(int mode, struct comedi_device *dev,
	switch (devpriv->dma) {
	case 1:		/*  DMA */
	case 3:
		if (devpriv->dma_rtc == 0) {
		if (devpriv->dma_rtc == 0)
			pcl818_ai_mode13dma_int(mode, dev, s);
		}
#ifdef unused
		else {
		else
			pcl818_ai_mode13dma_rtc(mode, dev, s);
		}
#else
		else {
		else
			return -EINVAL;
		}
#endif
		break;
	case 0: