drivers: staging: rtl8187se: refactor wmm_param_update
authorAxel Rasmussen <axel.rasmussen1@gmail.com>
Tue, 4 Mar 2014 07:12:57 +0000 (00:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Mar 2014 01:12:02 +0000 (17:12 -0800)
commit843a01f20af180d238cfcb5456e30404c2f4cc37
tree23da22f34d2c50c1e7fa5d8f065c32b861debdce
parentaaf3f2dc424ec24da410c9d67ea8400c986eb900
drivers: staging: rtl8187se: refactor wmm_param_update

The function rtl8180_wmm_param_update contained two blocks of code which
were nearly identical. This patch combines those two blocks into a
single function, to reduce code duplication, and do fix some
checkpatch.pl warnings about excessively long lines due to the large
number of indents that were needed for the original blocks of code.

Signed-off-by: Axel Rasmussen <axel.rasmussen1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/r8180_core.c