mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-12 00:43:36 -04:00
Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.
Use sizeof type *pointer instead of sizeof type. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4ec4595272
commit
9899cb68c6
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ srpc_service_init(struct srpc_service *svc)
|
||||||
svc->sv_shuttingdown = 0;
|
svc->sv_shuttingdown = 0;
|
||||||
|
|
||||||
svc->sv_cpt_data = cfs_percpt_alloc(lnet_cpt_table(),
|
svc->sv_cpt_data = cfs_percpt_alloc(lnet_cpt_table(),
|
||||||
sizeof(struct srpc_service_cd));
|
sizeof(*svc->sv_cpt_data));
|
||||||
if (!svc->sv_cpt_data)
|
if (!svc->sv_cpt_data)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue