Quentin LAMBERT

Articles de cet auteur

Staging: comedi: replace pr_err with dev_err

Author: Haneen Mohammed <hamohammed.sa@gmail.com> This patch replace pr_err with dev_err, when appropriate device structure is found. Issue found using the following Coccinelle script: @r exists@ identifier f, s, i; position p; @@ f(…,struct s *i,…) { } @rr@ identifier r.s, fld; @@ struct s { … struct device *fld; … }; @@ identifier r.i, rr.fld; …

Lire la suite

Staging: rtl8192u: Rename struct to avoid CamelCase

Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch renames struct DRxPathSel to dynamic_rx_path_sel in order to keep the notations consistent and to remove the warning: « CHECK: Avoid CamelCase ». Done with coccinelle: @@ @@ struct -DRxPathSel +dynamic_rx_path_sel {…} @@ @@ struct -DRxPathSel +dynamic_rx_path_sel Signed-off-by: Cristina Opriceana Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192u/r8192U_dm.c | 2 +- drivers/staging/rtl8192u/r8192U_dm.h | 4 ++– …

Lire la suite

Staging: rtl8192u: Do not add new typedefs

Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch removes the dig_t and DRxPathSel type definitions in order to avoid the following warning: « WARNING: Do not add new typedefs ». Done with coccinelle and this script: @r@ type t; identifier id; @@ typedef struct id {…} t; @script:python get_name@ t

Staging: nvec: use !x instead of x == NULL

Author: Somya Anand <somyaanand214@gmail.com> Functions like devm_kzalloc, kmalloc_array, devm_ioremap, usb_alloc_urb, alloc_netdev return NULL as a return value on failure. Generally, When NULL represents failure, !x is commonly used. This patch cleans up the tests on the results of these functions, thereby using !x instead of x == NULL or NULL == x. This is done …

Lire la suite

Staging: iio: use !x instead of x == NULL

Author: Somya Anand <somyaanand214@gmail.com> Functions like devm_kzalloc, kmalloc_array, devm_ioremap, usb_alloc_urb, alloc_netdev return NULL as a return value on failure. Generally, When NULL represents failure, !x is commonly used. This patch cleans up the tests on the results of these functions, thereby using !x instead of x == NULL or NULL == x. This is done …

Lire la suite

Staging: goldfish: use !x instead of x == NULL

Author: Somya Anand <somyaanand214@gmail.com> Functions like devm_kzalloc, kmalloc_array, devm_ioremap, usb_alloc_urb, alloc_netdev return NULL as a return value on failure. Generally, When NULL represents failure, !x is commonly used. This patch cleans up the tests on the results of these functions, thereby using !x instead of x == NULL or NULL == x. This is done …

Lire la suite

Staging: gdm72xx: use !x instead of x == NULL

Author: Somya Anand <somyaanand214@gmail.com> Functions like devm_kzalloc, kmalloc_array, devm_ioremap, usb_alloc_urb, alloc_netdev return NULL as a return value on failure. Generally, When NULL represents failure, !x is commonly used. This patch cleans up the tests on the results of these functions, thereby using !x instead of x == NULL or NULL == x. This is done …

Lire la suite

staging: gdm724x: use !x instead of x == NULL

Author: Somya Anand <somyaanand214@gmail.com> Functions like devm_kzalloc, kmalloc_array, devm_ioremap, usb_alloc_urb, alloc_netdev return NULL as a return value on failure. Generally, When NULL represents failure, !x is commonly used. This patch cleans up the tests on the results of these functions, thereby using !x instead of x == NULL or NULL == x. This is done …

Lire la suite

staging: rtl8192u: remove return from end of void function

Author: Supriya Karanth <iskaranth@gmail.com> This patch removes the return statement at the end of a void function as it is not necessary. found by checkpatch.pl: WARNING: void function return statements are not generally useful changes made using coccinelle script: @@ @@ … when != if (…) return; when != if (…) { … return;} -return; …

Lire la suite

Staging: iio: Prefer using the BIT macro

Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch replaces bit shifting on 1 with the BIT(x) macro as it’s extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1

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.