diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-04 11:33:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-04 11:39:13 +0100 |
commit | ea911d331860cbaa629b57dc5f86257bdf93d70a (patch) | |
tree | 5fd8642999fe10794fb6ea03620e03df55c88cbc /fs/ubifs/crc16.h | |
parent | fcb5c1f4c62595983060c2a33310a4095872e391 (diff) | |
download | barebox-ea911d331860cbaa629b57dc5f86257bdf93d70a.tar.gz barebox-ea911d331860cbaa629b57dc5f86257bdf93d70a.tar.xz |
fs: ubifs: Remove unused crc16 functions
The crc16 functions in ubifs are unused, so remove them.
(They were only used in the LPT functions which are completely removed
for the barebox readonly implementation)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/ubifs/crc16.h')
-rw-r--r-- | fs/ubifs/crc16.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/fs/ubifs/crc16.h b/fs/ubifs/crc16.h deleted file mode 100644 index 052fd3311a..0000000000 --- a/fs/ubifs/crc16.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * crc16.h - CRC-16 routine - * - * Implements the standard CRC-16: - * Width 16 - * Poly 0x8005 (x^16 + x^15 + x^2 + 1) - * Init 0 - * - * Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com> - * - * This source code is licensed under the GNU General Public License, - * Version 2. See the file COPYING for more details. - */ - -#ifndef __CRC16_H -#define __CRC16_H - -#include <linux/types.h> - -extern u16 const crc16_table[256]; - -extern u16 crc16(u16 crc, const u8 *buffer, size_t len); - -static inline u16 crc16_byte(u16 crc, const u8 data) -{ - return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff]; -} - -#endif /* __CRC16_H */ |