]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: Factor out repeated code into function 'ks_wlan_cap()'.
authorQuytelda Kahja <quytelda@tamalin.org>
Thu, 1 Mar 2018 05:19:09 +0000 (21:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2018 16:34:48 +0000 (17:34 +0100)
commit4f8c3a5fbc4aaa2e8cf2a7aafff0b3ef9d16d7b3
tree61d17266489f143e47167081147abda02cbea897
parent59e81adbdcf7dd44e2130470ff34295775eded12
staging: ks7010: Factor out repeated code into function 'ks_wlan_cap()'.

The code that generates a WLAN capability mask is repeated in five
functions.  This change refactors that code into a new function, which is
called now in each of those functions.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
Reviewed-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c