Commit cb30fc50 authored by Sean Williams's avatar Sean Williams Committed by Greg Kroah-Hartman

Staging: comedi: ni_at_a2150: Remove a few superfluous braces

Please don't flame me :) I'm getting my feet wet with kernel contribution.
One example I saw in a video by GKH suggested cleaning up coding style as a good first commit.
Signed-off-by: default avatarSean Williams <unixed@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a49061af
......@@ -684,13 +684,12 @@ static int a2150_set_chanlist(struct comedi_device *dev,
devpriv->config_bits |= CHANNEL_BITS(0x4 | start_channel);
break;
case 2:
if (start_channel == 0) {
if (start_channel == 0)
devpriv->config_bits |= CHANNEL_BITS(0x2);
} else if (start_channel == 2) {
else if (start_channel == 2)
devpriv->config_bits |= CHANNEL_BITS(0x3);
} else {
else
return -1;
}
break;
case 4:
devpriv->config_bits |= CHANNEL_BITS(0x1);
......
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