Articles de cet auteur
Mar 17 2015
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; …
Mar 16 2015
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 ++– …
Mar 16 2015
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
Mar 16 2015
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 …
Mar 16 2015
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 …
Mar 16 2015
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 …
Mar 16 2015
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 …
Mar 16 2015
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 …
Mar 15 2015
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; …
Mar 14 2015
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