OSDN Git Service

staging: wilc1000: Neaten refresh_scan - remove always 1 argument
authorJoe Perches <joe@perches.com>
Thu, 29 Jun 2017 15:42:00 +0000 (08:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:40:58 +0000 (08:40 +0200)
commitd4e25108bb20e0294f7e8bcd478a8ff20e5b269f
tree37cc607d45bab9304c226bec7aa33e4891e2a79d
parent55c0698a2c156fa27f04c6d602b43dca1ce9283e
staging: wilc1000: Neaten refresh_scan - remove always 1 argument

All uses of refresh_scan() have a constant 1 as the second argument.
Remove it and neaten the function declaration.

Miscellanea:

o Remove overly deep indentation by using continue;
o Remove unnecessary test of the address of a static array as it's
  always non-zero
o Rename and use proper type for the first void * argument as it's
  always the struct wilc_priv *
o Move variables into loop where used

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c