summaryrefslogtreecommitdiffstats
path: root/net/core/netpoll.c
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 /net/core/netpoll.c
parenta7a0d6a87b70f7b2bab5281fc0fd443772bd0795 (diff)
downloadlinux-stable-07f0757a6808f2f36a0e58c3a54867ccffdb8dc9.tar.gz
linux-stable-07f0757a6808f2f36a0e58c3a54867ccffdb8dc9.tar.bz2
linux-stable-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 'net/core/netpoll.c')
-rw-r--r--net/core/netpoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 34f5d072f168..fc4e28e23b89 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -343,7 +343,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
udph->check = csum_tcpudp_magic(htonl(np->local_ip),
htonl(np->remote_ip),
udp_len, IPPROTO_UDP,
- csum_partial((unsigned char *)udph, udp_len, 0));
+ csum_partial(udph, udp_len, 0));
if (udph->check == 0)
udph->check = CSUM_MANGLED_0;