Articles de cet auteur
Mar 14 2015
staging: sm750fb: remove parantheses from return statements
Author: Supriya Karanth <iskaranth@gmail.com> found by checkpatch.pl :ERROR: return is not a function, parentheses are not required changes made using coccinelle script: @@ expression e,e1; @@ ( return (e / e1); | return -( e -) ; ) Signed-off-by: Supriya Karanth Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/staging/sm750fb/ddk750_chip.c | 2 +- drivers/staging/sm750fb/ddk750_swi2c.c | 6 …
Mar 13 2015
Staging: lustre: Iterate list using list_for_each_entry
Author: Somya Anand <somyaanand214@gmail.com> Code using doubly linked list is iterated generally using list_empty and list_entry functions, but it can be better written using list_for_each_entry macro. This patch replaces the while loop containing list_empty and list_entry with list_for_each_entry and list_for_each_entry_safe. list_for_each_entry is a macro which is used to iterate over a list of given type. …
Mar 13 2015
Staging: gdm72xx: Iterate list using list_for_each_entry
Author: Somya Anand <somyaanand214@gmail.com> Code using doubly linked list is iterated generally using list_empty and list_entry functions, but it can be better written using list_for_each_entry macro. This patch replaces the while loop containing list_empty and list_entry with list_for_each_entry and list_for_each_entry_safe. list_for_each_entry is a macro which is used to iterate over a list of given type. …
Mar 13 2015
Staging: emxx_udc: Iterate list using list_for_each_entry
Author: Somya Anand <somyaanand214@gmail.com> Code using doubly linked list is iterated generally using list_empty and list_entry functions, but it can be better written using list_for_each_entry macro. This patch replaces the while loop containing list_empty and list_entry with list_for_each_entry and list_for_each_entry_safe. list_for_each_entry is a macro which is used to iterate over a list of given type. …
Mar 13 2015
Staging: ft1000: Iterate list using list_for_each_entry
Author: Somya Anand <somyaanand214@gmail.com> Code using doubly linked list is iterated generally using list_empty and list_entry functions, but it can be better written using list_for_each_entry macro. This patch replaces the while loop containing list_empty and list_entry with list_for_each_entry and list_for_each_entry_safe. list_for_each_entry is a macro which is used to iterate over a list of given type. …
Mar 13 2015
Staging: rtl8192u: Bool tests don’t need comparisons
Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch removes explicit true/false comparations to bool variables. Warning found by coccinelle: « WARNING: Comparison to bool » Signed-off-by: Cristina Opriceana Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | 5 ++— drivers/staging/rtl8192u/r8192U_core.c | 2 +- drivers/staging/rtl8192u/r819xU_firmware.c | 6 +++— drivers/staging/rtl8192u/r819xU_phy.c | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff –git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c …
Mar 13 2015
Staging: rtl8192e: Bool tests don’t need comparisons
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 …
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); | …