Commit 9ed221fa authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_3xxx: checkpatch.pl cleanup (else after return)

Fix the checkpatch.pl warning in this file:

WARNING: else is not generally useful after a break or return
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8ed43d77
...@@ -389,9 +389,8 @@ static int apci3xxx_ai_started(struct comedi_device *dev) ...@@ -389,9 +389,8 @@ static int apci3xxx_ai_started(struct comedi_device *dev)
if ((readl(devpriv->mmio + 8) & 0x80000) == 0x80000) if ((readl(devpriv->mmio + 8) & 0x80000) == 0x80000)
return 1; return 1;
else
return 0;
return 0;
} }
static int apci3xxx_ai_setup(struct comedi_device *dev, unsigned int chanspec) static int apci3xxx_ai_setup(struct comedi_device *dev, unsigned int chanspec)
...@@ -696,10 +695,9 @@ static int apci3xxx_dio_insn_config(struct comedi_device *dev, ...@@ -696,10 +695,9 @@ static int apci3xxx_dio_insn_config(struct comedi_device *dev,
/* ignore all other instructions for ports 0 and 1 */ /* ignore all other instructions for ports 0 and 1 */
if (chan < 16) if (chan < 16)
return -EINVAL; return -EINVAL;
else
/* changing any channel in port 2 */ /* changing any channel in port 2 changes the entire port */
/* changes the entire port */ mask = 0xff0000;
mask = 0xff0000;
} }
ret = comedi_dio_insn_config(dev, s, insn, data, mask); ret = comedi_dio_insn_config(dev, s, insn, data, mask);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment