From: Payal Kshirsagar Date: Tue, 2 Apr 2019 14:17:29 +0000 (+0530) Subject: staging: rtlwifi: base.c: Replace bit shifting with BIT macro X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a3b3e835d6caf31aa763a400db2dbae2c7c396fe;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtlwifi/base.c b/drivers/staging/rtlwifi/base.c index 35df2cf606190..b8358ebbf912b 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);