wlan-ng: clean up prism2sta_inf_chinforesults()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Feb 2013 05:12:06 +0000 (08:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:47:13 +0000 (09:47 -0700)
commita0cdd2e4a96a253c83e8d7856e39b9807805c6c4
tree8759234e9670c348b76adda90cbd2f5ee3eb9b50
parentc19e94613eda688c11973858d11597179842f4c2
wlan-ng: clean up prism2sta_inf_chinforesults()

This function is ugly because it hits against the 80 character
limit.  This patch does several things to clean it up.

1) Introduces "result" instead of inf->info.chinforesult.result[n].
2) Reverses the ".scanchannels & (1 << i)" so everthing can be
   pulled in one indent level.
3) Use "chan" instead of "channel".
4) Tweaks the line breaks to the call to pr_debug().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2sta.c