Quentin LAMBERT

Articles de cet auteur

staging: rtl8712: Remove the unnecessary parantheses

Author: G Pooja Shamili <poojashamili@gmail.com> The unnecessary parantheses on the right side of assignments were removed, as in most cases (expect for ==, >=, =,

serial: mvebu-uart: fix platform_no_drv_owner.cocci warnings

Author: Julia Lawall <julia.lawall@lip6.fr> No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Wilson Ding Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/tty/serial/mvebu-uart.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/drivers/tty/serial/mvebu-uart.c b/drivers/tty/serial/mvebu-uart.c index 0ff2781..81008a9 100644 — a/drivers/tty/serial/mvebu-uart.c +++ b/drivers/tty/serial/mvebu-uart.c @@ -615,7 +615,6 …

Lire la suite

staging: speakup: Replace del_timer with del_timer_sync

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use del_timer_sync to ensure timer is stopped on all CPUs before the driver exists and the timer should not run when the module is being removed. Since the timer is not called from an interrupt context, this change is safe and will not cause deadlock. The Coccinelle semantic patch used …

Lire la suite

staging: rtl8712: rtl871x_mp_ioctl: Remove exceptional & on function name

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> In this file, function names are otherwise used as pointers without &. The Coccinelle semantic patch that is used to make this change is as follows: // @r@ identifier f; @@ f(…) { … } @@ identifier r.f; @@ – &f + f @m@ type T; identifier f; @@ T …

Lire la suite

staging: comedi: drivers: gsc_hpdi: Remove use of deprecated pci API

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace pci_[alloc|free]_consistent occurences with dma_[alloc|free]_coherent. The Coccinelle semantic patch that was used to make some of these changes is as follows: @deprecated@ idexpression id; position p; @@ ( pci_dma_supported@p ( id, …) | pci_alloc_consistent@p ( id, …) ) @bad1@ idexpression id; position deprecated.p; @@ …when != &id->dev when != pci_get_drvdata …

Lire la suite

drivers: staging: rtl8712: Change form of NULL comparisons

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Change null comparisons of the form x == NULL to !x. This was done using Coccinelle. @@ expression e; @@ – e == NULL + !e Signed-off-by: Bhaktipriya Shridhar Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8712/recv_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/rtl8712/recv_linux.c b/drivers/staging/rtl8712/recv_linux.c index be970ef..acceb43 …

Lire la suite

staging: rtl8723au: core: rtw_security: Change form of NULL comparisons

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Change null comparisons of the form x == NULL to !x. This was done using Coccinelle. @@ expression e; @@ – e == NULL + !e Signed-off-by: Bhaktipriya Shridhar Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8723au/core/rtw_security.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/staging/rtl8723au/core/rtw_security.c b/drivers/staging/rtl8723au/core/rtw_security.c index 411d138..5a4cfdf …

Lire la suite

staging: rtl8723au: core: rtw_sta_mgt: Change form of NULL comparisons

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Change null comparisons of the form x == NULL to !x. This was done using Coccinelle. @@ expression e; @@ – e == NULL + !e Signed-off-by: Bhaktipriya Shridhar Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8723au/core/rtw_sta_mgt.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-)   diff –git a/drivers/staging/rtl8723au/core/rtw_sta_mgt.c b/drivers/staging/rtl8723au/core/rtw_sta_mgt.c index 5f85ee0..a9b778c …

Lire la suite

staging: rts5208: Change form of NULL comparisons

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Change null comparisons of the form x == NULL to !x. This was done using Coccinelle. @@ expression e; @@ – e == NULL + !e Signed-off-by: Bhaktipriya Shridhar Signed-off-by: Greg Kroah-Hartman — drivers/staging/rts5208/ms.c | 10 +++++—– 1 file changed, 5 insertions(+), 5 deletions(-)   diff –git a/drivers/staging/rts5208/ms.c b/drivers/staging/rts5208/ms.c index 6433015..a780185 …

Lire la suite

IB/hfi1: Replace kmalloc and memcpy with a kmemdup

Author: Harish Chegondi <harish.chegondi@intel.com> This change was recommended by Coccinelle tool when I ran the command: -bash-4.2$ make coccicheck MODE=patch M=drivers/infiniband/hw/hfi1/ Reviewed-by: Jubin John Reviewed-by: Mike Marciniszyn Reviewed-by: Dennis Dalessandro Signed-off-by: Harish Chegondi Signed-off-by: Doug Ledford — drivers/staging/rdma/hfi1/efivar.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/staging/rdma/hfi1/efivar.c b/drivers/staging/rdma/hfi1/efivar.c index 5fe3924..3f014f9 …

Lire la suite