diff options
author | Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> | 2019-04-02 17:17:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-02 20:57:11 +0300 |
commit | a3b3e835d6caf31aa763a400db2dbae2c7c396fe (patch) | |
tree | 44617694867594b5dbbdbd04b97594e29146562d | |
parent | f36fa2d94b3d79f1c73ea72bd85a270094499e17 (diff) | |
download | linux-a3b3e835d6caf31aa763a400db2dbae2c7c396fe.tar.xz |
staging: rtlwifi: base.c: Replace bit shifting with BIT macro
Challenge suggested by coccinelle.
Prefer using BIT and replace bit shifting with the BIT(x) macro
and remove cast.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtlwifi/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtlwifi/base.c b/drivers/staging/rtlwifi/base.c index 35df2cf60619..b8358ebbf912 100644 --- a/drivers/staging/rtlwifi/base.c +++ b/drivers/staging/rtlwifi/base.c @@ -2446,7 +2446,7 @@ struct sk_buff *rtl_make_del_ba(struct ieee80211_hw *hw, IEEE80211_STYPE_ACTION); action_frame->u.action.category = WLAN_CATEGORY_BACK; action_frame->u.action.u.delba.action_code = WLAN_ACTION_DELBA; - params = (u16)(1 << 11); /* bit 11 initiator */ + params = BIT(11); /* bit 11 initiator */ params |= (u16)(tid << 12); /* bit 15:12 TID number */ action_frame->u.action.u.delba.params = cpu_to_le16(params); |