summaryrefslogtreecommitdiffstats
path: root/include/net/checksum.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2008-11-19 15:44:53 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-19 15:44:53 -0800
commit07f0757a6808f2f36a0e58c3a54867ccffdb8dc9 (patch)
treee04b573c3f1471ff21c6b2499682a620f4db7eae /include/net/checksum.h
parenta7a0d6a87b70f7b2bab5281fc0fd443772bd0795 (diff)
downloadtalos-obmc-linux-07f0757a6808f2f36a0e58c3a54867ccffdb8dc9.tar.gz
talos-obmc-linux-07f0757a6808f2f36a0e58c3a54867ccffdb8dc9.zip
include/net net/ - csum_partial - remove unnecessary casts
The first argument to csum_partial is const void * casts to char/u8 * are not necessary Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/checksum.h')
-rw-r--r--include/net/checksum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/checksum.h b/include/net/checksum.h
index 07602b7fa218..ba55d8b8c87c 100644
--- a/include/net/checksum.h
+++ b/include/net/checksum.h
@@ -98,7 +98,7 @@ static inline void csum_replace4(__sum16 *sum, __be32 from, __be32 to)
{
__be32 diff[] = { ~from, to };
- *sum = csum_fold(csum_partial((char *)diff, sizeof(diff), ~csum_unfold(*sum)));
+ *sum = csum_fold(csum_partial(diff, sizeof(diff), ~csum_unfold(*sum)));
}
static inline void csum_replace2(__sum16 *sum, __be16 from, __be16 to)
OpenPOWER on IntegriCloud