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

staging: comedi: ni_660x: 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 eb8051d7
...@@ -310,10 +310,7 @@ enum clock_config_register_bits { ...@@ -310,10 +310,7 @@ enum clock_config_register_bits {
/* ioconfigreg */ /* ioconfigreg */
static inline unsigned ioconfig_bitshift(unsigned pfi_channel) static inline unsigned ioconfig_bitshift(unsigned pfi_channel)
{ {
if (pfi_channel % 2) return (pfi_channel % 2) ? 0 : 8;
return 0;
else
return 8;
} }
static inline unsigned pfi_output_select_mask(unsigned pfi_channel) static inline unsigned pfi_output_select_mask(unsigned pfi_channel)
......
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