diff options
Diffstat (limited to 'drivers/net/hamradio/hdlcdrv.c')
-rw-r--r-- | drivers/net/hamradio/hdlcdrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hamradio/hdlcdrv.c b/drivers/net/hamradio/hdlcdrv.c index ae9629fa6882..c258a0586e61 100644 --- a/drivers/net/hamradio/hdlcdrv.c +++ b/drivers/net/hamradio/hdlcdrv.c | |||
@@ -88,6 +88,7 @@ | |||
88 | static inline void append_crc_ccitt(unsigned char *buffer, int len) | 88 | static inline void append_crc_ccitt(unsigned char *buffer, int len) |
89 | { | 89 | { |
90 | unsigned int crc = crc_ccitt(0xffff, buffer, len) ^ 0xffff; | 90 | unsigned int crc = crc_ccitt(0xffff, buffer, len) ^ 0xffff; |
91 | buffer += len; | ||
91 | *buffer++ = crc; | 92 | *buffer++ = crc; |
92 | *buffer++ = crc >> 8; | 93 | *buffer++ = crc >> 8; |
93 | } | 94 | } |