mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00: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_cpt_data = cfs_percpt_alloc(lnet_cpt_table(),
|
||||
sizeof(struct srpc_service_cd));
|
||||
sizeof(*svc->sv_cpt_data));
|
||||
if (!svc->sv_cpt_data)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in a new issue