Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1732863
| From | Harsha Sharma <harshasharmaiitr@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging: rtlwifi: delete double assignment |
| Date | 2017-09-15 14:40 +0200 |
| Message-ID | <upY4y-2MI-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Remove two adjacent assignments to the same location. In practice, many such occurences are intentional but this case don't seem to fall into that category. Done using following coccinelle semantic patch @@ expression e1,e2,e3; @@ ( (<+...e1++...+>)=e2; | (<+...e1--...+>)=e2; | (<+...++e1...+>)=e2; | (<+...--e1...+>)=e2; | e1=e2; e1 = <+...e1...+>; | *e1=e2; *e1=e3; ) Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com> --- drivers/staging/rtlwifi/base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtlwifi/base.c b/drivers/staging/rtlwifi/base.c index b88b0e8..68bd124 100644 --- a/drivers/staging/rtlwifi/base.c +++ b/drivers/staging/rtlwifi/base.c @@ -1536,7 +1536,6 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx, /* EAPOL is seen as in-4way */ rtlpriv->btcoexist.btc_info.in_4way = true; rtlpriv->btcoexist.btc_info.in_4way_ts = jiffies; - rtlpriv->btcoexist.btc_info.in_4way_ts = jiffies; RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG, "802.1X %s EAPOL pkt!!\n", (is_tx) ? "Tx" : "Rx"); -- 1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] staging: rtlwifi: delete double assignment Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-15 14:40 +0200 Re: [Outreachy kernel] [PATCH] staging: rtlwifi: delete double assignment Julia Lawall <julia.lawall@lip6.fr> - 2017-09-15 15:50 +0200
csiph-web