Skip to contentSkip to conversation

USB: serial: safe_serial: move __inline__ before return type

PATCH New [email protected] 1 participant 1 message Jul 12, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 92/96 USB: serial: safe_serial: move __inline__ before return type

From: Joe Perches <[email protected]>
Subject: USB: serial: safe_serial: move __inline__ before return type

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

---

 drivers/usb/serial/safe_serial.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/serial/safe_serial.c renamed from drivers/usb/serial/safe_serial.c~usb-serial-safe_serial-move-__inline__-before-return-type +1 -1
diff -puN drivers/usb/serial/safe_serial.c~usb-serial-safe_serial-move-__inline__-before-return-type 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;

_