]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6198d5c46c6192bafe6a1697a23618d1ba7dfc08
treeba5cc7b41d65e23ab7251b6600204bc74e378c6f
parentb528fead0a699145051424e608e1bd44c4c41ec8
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