From: Sandhya Bankar Date: Mon, 21 Mar 2016 14:21:12 +0000 (+0530) Subject: Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type. X-Git-Tag: Ubuntu-5.10.0-12.13~12578^2~734 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9899cb68c6c23d58b27035c237b2d425f4c6133c;p=mirror_ubuntu-hirsute-kernel.git Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type. Use sizeof type *pointer instead of sizeof type. Signed-off-by: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c b/drivers/staging/lustre/lnet/selftest/rpc.c index ab8ba3724954..5d8908d258df 100644 --- a/drivers/staging/lustre/lnet/selftest/rpc.c +++ b/drivers/staging/lustre/lnet/selftest/rpc.c @@ -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;