diff options
Diffstat (limited to 'fs/btrfs/crc32c.h')
-rw-r--r-- | fs/btrfs/crc32c.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/crc32c.h b/fs/btrfs/crc32c.h index bf6c12e85730..4f0fefed132a 100644 --- a/fs/btrfs/crc32c.h +++ b/fs/btrfs/crc32c.h | |||
@@ -96,13 +96,7 @@ static inline u32 __btrfs_crc32c(u32 crc, unsigned char const *address, | |||
96 | * We must workaround older implementations of crc32c_le() | 96 | * We must workaround older implementations of crc32c_le() |
97 | * found on older kernel versions. | 97 | * found on older kernel versions. |
98 | */ | 98 | */ |
99 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) | ||
100 | #define btrfs_crc32c(seed, data, length) \ | ||
101 | __cpu_to_le32( __btrfs_crc32c( __le32_to_cpu(seed), \ | ||
102 | (unsigned char const *)data, length) ) | ||
103 | #else | ||
104 | #define btrfs_crc32c(seed, data, length) \ | 99 | #define btrfs_crc32c(seed, data, length) \ |
105 | __btrfs_crc32c(seed, (unsigned char const *)data, length) | 100 | __btrfs_crc32c(seed, (unsigned char const *)data, length) |
106 | #endif | 101 | #endif |
107 | #endif | ||
108 | 102 | ||