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

Commit 193725ba authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: s626: checkpatch.pl cleanup (else not useful)



Fix the checkpatch.pl warning:

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 f9558b49
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -836,10 +836,8 @@ static uint16_t s626_get_mode_b(struct comedi_device *dev,
static uint16_t s626_get_mode(struct comedi_device *dev,
			      unsigned int chan)
{
	if (chan < 3)
		return s626_get_mode_a(dev, chan);
	else
		return s626_get_mode_b(dev, chan);
	return (chan < 3) ? s626_get_mode_a(dev, chan)
			  : s626_get_mode_b(dev, chan);
}
#endif

@@ -1047,10 +1045,8 @@ static uint16_t s626_get_enable(struct comedi_device *dev,
{
	uint16_t crb = s626_debi_read(dev, S626_LP_CRB(chan));

	if (chan < 3)
		return S626_GET_CRB_CLKENAB_A(crb);
	else
		return S626_GET_CRB_CLKENAB_B(crb);
	return (chan < 3) ? S626_GET_CRB_CLKENAB_A(crb)
			  : S626_GET_CRB_CLKENAB_B(crb);
}
#endif