staging: wilc1000: Use sizeof type *pointer instead of sizeof type
authorsayli karnik <karniksayli1995@gmail.com>
Fri, 16 Sep 2016 10:53:02 +0000 (16:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Sep 2016 21:32:13 +0000 (23:32 +0200)
commitfaa48ea82bcd4b186dd548529d2514a9a2892095
treeb441e64086b6a5e0a9d9bcf3ae35fca3f90828b7
parentd7c952a3664c5f52a1a117327a9e32e64cc74ed4
staging: wilc1000: Use sizeof type *pointer instead of sizeof type

The patch uses the size of the dereference to a variable instead of it's 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: sayli karnik <karniksayli1995@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c