Quentin LAMBERT

Author's posts

staging: r8192ee: fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c:2491:3-4: Unneeded semicolon Removes unneeded semicolon. Generated by: /kbuild/src/linux/scripts/coccinelle/misc/semicolon.cocci CC: Larry Finger Signed-off-by: Fengguang Wu Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c b/drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c index 7fb5907..244d559 100644 — a/drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c +++ b/drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c @@ -2488,7 +2488,7 @@ static void halbtc8821a2ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) …

Continue reading

SELinux: use ARRAY_SIZE

Author: Himangi Saraogi <himangi774@gmail.com> ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The Coccinelle semantic patch that makes this change is as follows: // @@ type T; T[] E; @@ – (sizeof(E)/sizeof(E[…])) + ARRAY_SIZE(E) // Signed-off-by: …

Continue reading

zorro: Use ARRAY_SIZE

Author: Himangi Saraogi <himangi774@gmail.com> ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The Coccinelle semantic patch that makes this change is as follows: // @@ type T; T[] E; @@ – (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) // Signed-off-by: …

Continue reading

usb: gadget: fsl_qe_udc: Introduce use of managed version of kzalloc

Author: Himangi Saraogi <himangi774@gmail.com> This patch moves data allocated using kzalloc to managed data allocated using devm_kzalloc and cleans now unnecessary kfrees in probe and remove functions. Also, the unnecesary labels are removed and some labels are renamed to preserve ordering. The following Coccinelle semantic patch was used for making the change: @platform@ identifier p, …

Continue reading

i2c: rk3x: add NULL entry to the end of_device_id array

Author: Dan Carpenter <dan.carpenter@oracle.com> drivers/i2c/busses/i2c-rk3x.c:610:69-70: rk3x_i2c_match is not NULL terminated at line 610 Make sure of_device_id tables are NULL terminated Generated by: /kbuild/src/linux/scripts/coccinelle/misc/of_table.cocci Signed-off-by: Dan Carpenter Signed-off-by: Wolfram Sang — drivers/i2c/busses/i2c-rk3x.c | 1 + 1 file changed, 1 insertion(+)   diff –git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index 9e3084c..a979150 100644 — a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -608,6 +608,7 @@ …

Continue reading

aic7xxx: Use kstrdup

Author: Himangi Saraogi <himangi774@gmail.com> Use kstrdup when the goal of an allocation is copy a string into the allocated region. The Coccinelle semantic patch that makes this change is as follows: // @@ expression from,to; expression flag,E1,E2; statement S; @@ – to = kmalloc(strlen(from) + 1,flag); + to = kstrdup(from, flag); … when != \(from …

Continue reading

ideapad_laptop: Introduce the use of the managed version of kzalloc

Author: Himangi Saraogi <himangi774@gmail.com> This patch moves data allocated using kzalloc to managed data allocated using devm_kzalloc and cleans now unnecessary kfrees in probe and remove functions. The label sysfs_failed is removed as it is no longer required. Also, linux/device.h is added to make sure the devm_*() routine declarations are unambiguously available. The following Coccinelle …

Continue reading

iio: fix error return code

Author: Julia Lawall <Julia.Lawall@lip6.fr> Convert a zero return value on error to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... …

Continue reading

fs/reiserfs/bitmap.c: coding style fixes

Author: Fabian Frederick <fabf@skynet.be> -Trivial code clean-up -Fix endif }; (coccinelle warning) Signed-off-by: Fabian Frederick Cc: Jeff Mahoney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — fs/reiserfs/bitmap.c | 13 ++++++——- 1 file changed, 6 insertions(+), 7 deletions(-)   diff –git a/fs/reiserfs/bitmap.c b/fs/reiserfs/bitmap.c index dc9a682..1bcffea 100644 — a/fs/reiserfs/bitmap.c +++ b/fs/reiserfs/bitmap.c @@ -142,7 +142,6 @@ static int scan_bitmap_block(struct …

Continue reading

fs/binfmt_elf.c: fix bool assignements

Author: Fabian Frederick <fabf@skynet.be> Fix coccinelle warnings. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — fs/binfmt_elf.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index aa3cb62..dabc73a 100644 — a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1686,7 +1686,7 @@ static size_t get_note_info_size(struct elf_note_info *info) static int write_note_info(struct elf_note_info *info, struct …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.