Skip to content

Commit

Permalink
Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sandhya Bankar authored and Greg Kroah-Hartman committed Mar 28, 2016
1 parent 4ec4595 commit 9899cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lnet/selftest/rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9899cb6

Please sign in to comment.