OSDN Git Service

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)
commitecad5e1e2012b0986ac398d506379265eb436ba2
tree61d17266489f143e47167081147abda02cbea897
parent15b6d73eaa7c35f52feb797e3e35a6477b41a624
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