Quentin LAMBERT

Articles de cet auteur

staging: dgnc: dgnc_driver.c: Replace non-standard spinlock’s macros

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> This patch replaces non-standard spinlock’s macros. It is done using coccinelle and the following semantic patch: @@ expression x; @@ – DGNC_SPINLOCK_INIT(x) + spin_lock_init(&x) @@ expression x, y; @@ – DGNC_LOCK(x, y) + spin_lock_irqsave(&x, y) @@ expression x, y; @@ – DGNC_UNLOCK(x, y) + spin_unlock_irqrestore(&x, y) @used_by_lock exists@ typedef ulong; symbol …

Lire la suite

staging: dgnc: dgnc_neo.c: Replace non-standard spinlock’s macros

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> This patch replaces non-standard spinlock’s macros. It is done using coccinelle and the following semantic patch: @@ expression x; @@ – DGNC_SPINLOCK_INIT(x) + spin_lock_init(&x) @@ expression x, y; @@ – DGNC_LOCK(x, y) + spin_lock_irqsave(&x, y) @@ expression x, y; @@ – DGNC_UNLOCK(x, y) + spin_unlock_irqrestore(&x, y) @used_by_lock exists@ typedef ulong; symbol …

Lire la suite

staging: dgnc: dgnc_tty.c: Replace non-standard spinlock’s macros

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> This patch replaces non-standard spinlock’s macros. It is done using coccinelle and the following semantic patch: @@ expression x; @@ – DGNC_SPINLOCK_INIT(x) + spin_lock_init(&x) @@ expression x, y; @@ – DGNC_LOCK(x, y) + spin_lock_irqsave(&x, y) @@ expression x, y; @@ – DGNC_UNLOCK(x, y) + spin_unlock_irqrestore(&x, y) @used_by_lock exists@ typedef ulong; symbol …

Lire la suite

staging: dgnc: dgnc_mgmt.c: Replace non-standard spinlock’s macros

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> This patch replaces non-standard spinlock’s macros. It is done using coccinelle and the following semantic patch: @@ expression x; @@ – DGNC_SPINLOCK_INIT(x) + spin_lock_init(&x) @@ expression x, y; @@ – DGNC_LOCK(x, y) + spin_lock_irqsave(&x, y) @@ expression x, y; @@ – DGNC_UNLOCK(x, y) + spin_unlock_irqrestore(&x, y) @used_by_lock exists@ typedef ulong; symbol …

Lire la suite

Staging: media: lirc: Merge two lines and remove unused variable

Author: Mahati Chamarthy <mahati.chamarthy@gmail.com> This patch merges an assignment with an immediately following return of the assigned variable. It also removes a variable that becomes unused due to this transformation. The following Coccinelle semantic patch was used to make this transformation: @r@ identifier ret; identifier f; @@ -ret = +return f(…); -return ret; @@ identifier …

Lire la suite

Staging: rtl8192e: rtl8192e: Merge two lines and remove unused variable

Author: Mahati Chamarthy <mahati.chamarthy@gmail.com> This patch merges an assignment with an immediately following return of the assigned variable. It also removes variables that became unused due to this transformation. The following Coccinelle semantic patch was used to make this transformation: @r@ identifier ret; identifier f; @@ -ret = +return f(…); -return ret; @@ identifier r.ret; …

Lire la suite

Staging: lustre: Return statement is moved left after removing else

Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch fixes following checkpatch.pl warning using coccinelle: WARNING: else is not generally useful after a break or return Semantic patch used for this is as follows: @rule1@ expression e1; @@ if (e1) { … return …; } – else{ … – } @rule2@ expression e2; statement s1; @@ if(e2) { …

Lire la suite

Staging: lustre: Unnecessory else and braces are removed

Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch fixes following checkpatch.pl warning using coccinelle: WARNING: else is not generally useful after a break or return Semantic patch used for this is as follows: @rule1@ expression e1; @@ if (e1) { … return …; } – else{ … – } @rule2@ expression e2; statement s1; @@ if(e2) { …

Lire la suite

staging: emxx_udc: Do not assign bool to 0/1

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> This fixes the following coccinelle warning: WARNING: Assignment of bool to 0/1 Signed-off-by: Roberta Dobrescu Acked-by: Daniel Baluta Signed-off-by: Greg Kroah-Hartman — drivers/staging/emxx_udc/emxx_udc.c | 12 ++++++—— 1 file changed, 6 insertions(+), 6 deletions(-)   diff –git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 16265d4..6212efb 100644 — a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -705,7 +705,7 @@ static int …

Lire la suite

staging: emxx_udc: Do not use comparisons on bool tests

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> This fixes the following coccinelle warning: WARNING: Comparison of bool to 0/1 Signed-off-by: Roberta Dobrescu Acked-by: Daniel Baluta Signed-off-by: Greg Kroah-Hartman — drivers/staging/emxx_udc/emxx_udc.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-)   diff –git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 341b652..16265d4 100644 — a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -2009,8 +2009,7 @@ static inline …

Lire la suite

BtrLinux
Résumé de la politique de confidentialité

Ce site utilise des cookies afin que nous puissions vous fournir la meilleure expérience utilisateur possible. Les informations sur les cookies sont stockées dans votre navigateur et remplissent des fonctions telles que vous reconnaître lorsque vous revenez sur notre site Web et aider notre équipe à comprendre les sections du site que vous trouvez les plus intéressantes et utiles.