mirror of https://gitee.com/openkylin/linux.git
staging: lustre: ptlrpc: sec_bulk: Remove useless cast on void pointer
The semantic patch used to find this is: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f3a8fb0729
commit
3df82ddccf
|
@ -540,8 +540,7 @@ int sptlrpc_get_bulk_checksum(struct ptlrpc_bulk_desc *desc, __u8 alg,
|
|||
memcpy(buf, hashbuf, buflen);
|
||||
} else {
|
||||
bufsize = buflen;
|
||||
err = cfs_crypto_hash_final(hdesc, (unsigned char *)buf,
|
||||
&bufsize);
|
||||
err = cfs_crypto_hash_final(hdesc, buf, &bufsize);
|
||||
}
|
||||
|
||||
if (err)
|
||||
|
|
Loading…
Reference in New Issue