Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch removes comparisons to true/false values on bool variables. Warning found by coccinelle: “WARNING: Comparison to bool”. Signed-off-by: Cristina Opriceana Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 40 +++++++++++++++————— 1 file changed, 20 insertions(+), 20 deletions(-) diff –git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c index c233a1c..9e65c32 100644 — a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c …
Category: Linux
Mar 13 2015
Staging: ft1000: Remove parentheses around right side an assignment
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Parentheses are not needed around the right hand side of an assignment. This patch remove parenthese of such occurenses. Issue was detected and solved using the following coccinelle script: @rule1@ identifier x, y, z; expression E1, E2; @@ ( x = (y == z); | x = (E1 == E2); | …
Mar 13 2015
Staging: rtl8192u: Remove parentheses around right side an assignment
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Parentheses are not needed around the right hand side of an assignment. This patch remove parenthese of such occurenses. Issue was detected and solved using the following coccinelle script: @rule1@ identifier x, y, z; expression E1, E2; @@ ( x = (y == z); | x = (E1 == E2); | …
Mar 13 2015
Staging: lustre: Remove parentheses around right side an assignment
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Parentheses are not needed around the right hand side of an assignment. This patch remove parenthese of such occurenses. Issue was detected and solved using the following coccinelle script: @rule1@ identifier x, y, z; expression E1, E2; @@ ( x = (y == z); | x = (E1 == E2); | …
Mar 13 2015
Staging: iio: Remove parentheses around right side an assignment
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Parentheses are not needed around the right hand side of an assignment. This patch remove parenthese of such occurenses. Issue was detected and solved using the following coccinelle script: @rule1@ identifier x, y, z; expression E1, E2; @@ ( x = (y == z); | x = (E1 == E2); | …
Mar 13 2015
Staging: media: Remove parentheses around right side an assignment
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Parentheses are not needed around the right hand side of an assignment. This patch remove parenthese of such occurenses. Issue was detected and solved using the following coccinelle script: @rule1@ identifier x, y, z; expression E1, E2; @@ ( x = (y == z); | x = (E1 == E2); | …
Mar 13 2015
Staging: rtl8723au: Remove parentheses around right side an assignment
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Parentheses are not needed around the right hand side of an assignment. This patch remove parenthese of such occurenses. Issue was detected and solved using the following coccinelle script: @rule1@ identifier x, y, z; expression E1, E2; @@ ( x = (y == z); | x = (E1 == E2); | …
Mar 13 2015
Staging: i2o: Move assignment out of if statement
Author: Somya Anand <somyaanand214@gmail.com> Checkpatch.pl suggest to avoid assignment in if statement. This patch moves assignments out of the if statement and place it before the if statement. This is done using following coccinelle script. @@ expression E1; identifier p; statement S; @@ – if ((p = E1)) + p = E1; + if (p) …
Mar 13 2015
Staging: rtl8188eu: Remove parentheses around right side an assignment
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Parentheses are not needed around the right hand side of an assignment. This patch remove parenthese of such occurenses. Issue was detected and solved using the following coccinelle script: @rule1@ identifier x, y, z; expression E1, E2; @@ ( x = (y == z); | x = (E1 == E2); | …
Mar 13 2015
staging: netlogic: allocate right size in devm_kzalloc
Author: Ravindran, Madhusudhanan (M.) <mravindr@visteon.com> sizeof when applied to a pointer typed expression gives the size of the pointer. The semantic patch that makes this change is available in scripts/coccinelle/misc/noderef.cocci. Signed-off-by: Madhusudhanan Ravindran Signed-off-by: Greg Kroah-Hartman — drivers/staging/netlogic/xlr_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index e8aae09..8ae0175 …