staging: lustre: Modify arguments of sizeof() to pointer variables
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Thu, 11 Feb 2016 03:47:33 +0000 (22:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:29:42 +0000 (19:29 -0800)
commita4e872f7b629c9f5a4f83bb2a84ece91b89ade67
treeba5cc7b41d65e23ab7251b6600204bc74e378c6f
parenta1fcca1e9afd5e2ec64be63574b548974b391d3c
staging: lustre: Modify arguments of sizeof() to pointer variables

Take the size of a dereference to a variable rather than the associated
type, to make the code more resistant to type changes in the future.
The type of the pointer variable here is the same as the type in the
argument that is being replaced in sizeof().

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c