projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9e5bfd
)
USB: serial: safe_serial: move __inline__ before return type
author
Joe Perches
<joe@perches.com>
Wed, 12 Jul 2017 21:37:40 +0000
(14:37 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 12 Jul 2017 23:26:04 +0000
(16:26 -0700)
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>
drivers/usb/serial/safe_serial.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/safe_serial.c
b/drivers/usb/serial/safe_serial.c
index
8a069aa
..
27d7a70
100644
(file)
--- a/
drivers/usb/serial/safe_serial.c
+++ b/
drivers/usb/serial/safe_serial.c
@@
-180,7
+180,7
@@
static const __u16 crc10_table[256] = {
* Perform a memcpy and calculate fcs using ppp 10bit CRC algorithm. Return
* new 10 bit FCS.
*/
-static
__u16 __inline__
fcs_compute10(unsigned char *sp, int len, __u16 fcs)
+static
inline __u16
fcs_compute10(unsigned char *sp, int len, __u16 fcs)
{
for (; len-- > 0; fcs = CRC10_FCS(fcs, *sp++));
return fcs;