Skip to content

Commit

Permalink
Staging: comedi: ni_at_a2150: Remove a few superfluous braces
Browse files Browse the repository at this point in the history
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: Sean Williams <unixed@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sean Williams authored and Greg Kroah-Hartman committed Sep 17, 2013
1 parent a49061a commit cb30fc5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/staging/comedi/drivers/ni_at_a2150.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb30fc5

Please sign in to comment.