diff options
| author | Joe Perches <[email protected]> | 2008-11-19 23:44:53 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-11-19 23:44:53 +0000 |
| commit | 07f0757a6808f2f36a0e58c3a54867ccffdb8dc9 (patch) | |
| tree | e04b573c3f1471ff21c6b2499682a620f4db7eae /net/unix/af_unix.c | |
| parent | net: inet_diag_handler structs can be const (diff) | |
| download | kernel-07f0757a6808f2f36a0e58c3a54867ccffdb8dc9.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index f2cf3f583f62..ebc4a9a4b1f7 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -216,7 +216,7 @@ static int unix_mkname(struct sockaddr_un *sunaddr, int len, unsigned *hashp) return len; } - *hashp = unix_hash_fold(csum_partial((char *)sunaddr, len, 0)); + *hashp = unix_hash_fold(csum_partial(sunaddr, len, 0)); return len; } @@ -686,7 +686,7 @@ static int unix_autobind(struct socket *sock) retry: addr->len = sprintf(addr->name->sun_path+1, "%05x", ordernum) + 1 + sizeof(short); - addr->hash = unix_hash_fold(csum_partial((void *)addr->name, addr->len, 0)); + addr->hash = unix_hash_fold(csum_partial(addr->name, addr->len, 0)); spin_lock(&unix_table_lock); ordernum = (ordernum+1)&0xFFFFF; |
