]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7275ee24275d9b0a6537d608e1b94fab736b66d8
treeb441e64086b6a5e0a9d9bcf3ae35fca3f90828b7
parentbfb976ddc734f2b346d64825bc1278c4f93c9e99
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