mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-21 14:21:48 +00:00
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>
This commit is contained in:
parent
a7a0d6a87b
commit
07f0757a68
10 changed files with 19 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue