]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188eu: ARRAY_SIZE instead of sizeof/sizeof used
authorIvan Safonov <insafonov@gmail.com>
Sat, 10 Oct 2015 12:21:54 +0000 (19:21 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:48:09 +0000 (20:48 -0700)
commit901415a12893c5b5bafeb45542e0414eb82b3468
treeae15942e3b08da0018186a40b6d2eb77b655cf82
parent0399bd00f0de127286df79379411e8da60818a2a
staging: rtl8188eu: ARRAY_SIZE instead of sizeof/sizeof used

This patch inserts ARRAY_SIZE instead of sizeof(type array[])/sizeof(type),
made arraylen variable constant
and removes unnecessary default value in variable definition.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/bb_cfg.c