mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02: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
|
|
@ -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…
Reference in New Issue
Block a user