Staging: wlan-ng: replace switch-case statements with macro
authorClaudiu Beznea <claudiu.beznea@gmail.com>
Fri, 26 Aug 2016 17:58:17 +0000 (20:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2016 15:51:20 +0000 (17:51 +0200)
commit0ca6d8e74489b08aa34108fe00fc1ba1667301a7
treee6e69dba3e64fa5f88bb4f380fb4d8f5906bf0ef
parent2f4791255808bd0d258400b4cf230c16ea8bdeae
Staging: wlan-ng: replace switch-case statements with macro

This patch removes multiple switch-case statements
with a new macro. The macro will generate the
corresponding bit mask based on the key index
received as input.

Chances since v1:
Corrected patch title

Signed-off-by: Claudiu Beznea <claudiu.beznea@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/cfg80211.c
drivers/staging/wlan-ng/p80211metadef.h