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

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

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
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -684,13 +684,12 @@ static int a2150_set_chanlist(struct comedi_device *dev,
		devpriv->config_bits |= CHANNEL_BITS(0x4 | start_channel);
		devpriv->config_bits |= CHANNEL_BITS(0x4 | start_channel);
		break;
		break;
	case 2:
	case 2:
		if (start_channel == 0) {
		if (start_channel == 0)
			devpriv->config_bits |= CHANNEL_BITS(0x2);
			devpriv->config_bits |= CHANNEL_BITS(0x2);
		} else if (start_channel == 2) {
		else if (start_channel == 2)
			devpriv->config_bits |= CHANNEL_BITS(0x3);
			devpriv->config_bits |= CHANNEL_BITS(0x3);
		} else {
		else
			return -1;
			return -1;
		}
		break;
		break;
	case 4:
	case 4:
		devpriv->config_bits |= CHANNEL_BITS(0x1);
		devpriv->config_bits |= CHANNEL_BITS(0x1);