]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Mon, 21 Mar 2016 14:21:12 +0000 (19:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
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>
drivers/staging/lustre/lnet/selftest/rpc.c

index ab8ba37249540c2307f40029feb030b8814b46f8..5d8908d258df1597823f9116c55a845977a6d6b1 100644 (file)
@@ -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;