]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
crc32: add missed brackets in macro
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Tue, 22 Mar 2011 23:34:45 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:15 +0000 (17:44 -0700)
Add brackets around typecasted argument in crc32() macro.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/crc32.h

index e20dd1f9b40a75ed05e52ac7e40de8f3c5e6e151..391a259b2cc90784157d57d1f5ca1c14641636e1 100644 (file)
@@ -11,7 +11,7 @@
 extern u32  crc32_le(u32 crc, unsigned char const *p, size_t len);
 extern u32  crc32_be(u32 crc, unsigned char const *p, size_t len);
 
-#define crc32(seed, data, length)  crc32_le(seed, (unsigned char const *)data, length)
+#define crc32(seed, data, length)  crc32_le(seed, (unsigned char const *)(data), length)
 
 /*
  * Helpers for hash table generation of ethernet nics: