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

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
...@@ -836,10 +836,8 @@ static uint16_t s626_get_mode_b(struct comedi_device *dev, ...@@ -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, static uint16_t s626_get_mode(struct comedi_device *dev,
unsigned int chan) unsigned int chan)
{ {
if (chan < 3) return (chan < 3) ? s626_get_mode_a(dev, chan)
return s626_get_mode_a(dev, chan); : s626_get_mode_b(dev, chan);
else
return s626_get_mode_b(dev, chan);
} }
#endif #endif
...@@ -1047,10 +1045,8 @@ static uint16_t s626_get_enable(struct comedi_device *dev, ...@@ -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)); uint16_t crb = s626_debi_read(dev, S626_LP_CRB(chan));
if (chan < 3) return (chan < 3) ? S626_GET_CRB_CLKENAB_A(crb)
return S626_GET_CRB_CLKENAB_A(crb); : S626_GET_CRB_CLKENAB_B(crb);
else
return S626_GET_CRB_CLKENAB_B(crb);
} }
#endif #endif
......
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