Articles de cet auteur
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 …
Mar 13 2015
staging: comedi: remove break after return
Author: Supriya Karanth <iskaranth@gmail.com> Remove « break » statement after a « return » statement as it does not get executed. Deadcode found by coccinelle –debug option Signed-off-by: Supriya Karanth Signed-off-by: Greg Kroah-Hartman — drivers/staging/comedi/drivers/ni_mio_common.c | 2 — 1 file changed, 2 deletions(-) diff –git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/staging/comedi/drivers/ni_mio_common.c index ecfd0544..ada050e 100644 — a/drivers/staging/comedi/drivers/ni_mio_common.c +++ b/drivers/staging/comedi/drivers/ni_mio_common.c @@ -3811,8 +3811,6 @@ …
Mar 13 2015
Staging: comedi: Remove parentheses around right side 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 occurences. 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 12 2015
staging: lustre: Use kmemdup rather than duplicating its implementation
Author: Ravindran, Madhusudhanan (M.) <mravindr@visteon.com> The semantic patch that makes this change is available in scriptcoccinelle/api/memdup.cocci. Signed-off-by: Madhusudhanan Ravindran Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/llite/xattr_cache.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/staging/lustre/lustre/llite/xattr_cache.c b/drivers/staging/lustre/lustre/llite/xattr_cache.c index 7e2fcfe..da190f9 100644 — a/drivers/staging/lustre/lustre/llite/xattr_cache.c +++ b/drivers/staging/lustre/lustre/llite/xattr_cache.c @@ -132,11 +132,10 @@ static int ll_xattr_cache_add(struct list_head *cache, …
Mar 12 2015
Staging: iio: Simplify return logic
Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch removes the conditional return of the ade77*_probe functions based on the return values of iio_device_register as the latter returns 0 or ret, the same as the checked values. Warning found by coccinelle. Signed-off-by: Cristina Opriceana Reviewed-by: Daniel Baluta Signed-off-by: Greg Kroah-Hartman — drivers/staging/iio/meter/ade7753.c | 6 +—– drivers/staging/iio/meter/ade7754.c | 6 …