From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:31 +0000 (-0700) Subject: staging: comedi: ni_660x: checkpatch.pl cleanup (else not useful) X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f9558b49dc2acabb95fb40b7486b7b41d317215e;p=linux-beck.git 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: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comedi/drivers/ni_660x.c index d09b8667cd42..72805e9a2798 100644 --- a/drivers/staging/comedi/drivers/ni_660x.c +++ b/drivers/staging/comedi/drivers/ni_660x.c @@ -310,10 +310,7 @@ enum clock_config_register_bits { /* ioconfigreg */ static inline unsigned ioconfig_bitshift(unsigned pfi_channel) { - if (pfi_channel % 2) - return 0; - else - return 8; + return (pfi_channel % 2) ? 0 : 8; } static inline unsigned pfi_output_select_mask(unsigned pfi_channel)