Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: serial: safe_serial: move __inline__ before return type

Make the code like the rest of the kernel.
Also use inline instead of __inline__.

Link: http://lkml.kernel.org/r/a5072b74b6c293e6ec93c4900482e9d3267f15b2.1499284835.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Johan Hovold <johan@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Joe Perches and committed by
Linus Torvalds
4abf87f4 a9e5bfdb

+1 -1
+1 -1
drivers/usb/serial/safe_serial.c
··· 180 180 * Perform a memcpy and calculate fcs using ppp 10bit CRC algorithm. Return 181 181 * new 10 bit FCS. 182 182 */ 183 - static __u16 __inline__ fcs_compute10(unsigned char *sp, int len, __u16 fcs) 183 + static inline __u16 fcs_compute10(unsigned char *sp, int len, __u16 fcs) 184 184 { 185 185 for (; len-- > 0; fcs = CRC10_FCS(fcs, *sp++)); 186 186 return fcs;