From: Sergio Paracuellos Date: Thu, 10 Nov 2016 18:16:41 +0000 (+0100) Subject: staging: wlan-ng: use GENMASK macro in define of p80211netdev.h X-Git-Tag: v4.10-rc1~148^2~280 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e49651b836f2be0ee3990a14d555b4d783a03911;p=karo-tx-linux.git staging: wlan-ng: use GENMASK macro in define of p80211netdev.h This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in p80211netdev.h header file. Signed-off-by: Sergio Paracuellos Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/p80211netdev.h b/drivers/staging/wlan-ng/p80211netdev.h index 8066ac43e58b..8e0d08298c8b 100644 --- a/drivers/staging/wlan-ng/p80211netdev.h +++ b/drivers/staging/wlan-ng/p80211netdev.h @@ -143,7 +143,7 @@ extern struct iw_handler_def p80211wext_handler_def; #define NUM_WEPKEYS 4 #define MAX_KEYLEN 32 -#define HOSTWEP_DEFAULTKEY_MASK (BIT(1) | BIT(0)) +#define HOSTWEP_DEFAULTKEY_MASK GENMASK(1, 0) #define HOSTWEP_SHAREDKEY BIT(3) #define HOSTWEP_DECRYPT BIT(4) #define HOSTWEP_ENCRYPT BIT(5)