Quentin LAMBERT

Articles de cet auteur

[media] ddbridge: Replace vmalloc with vzalloc

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> vzalloc combines vmalloc and memset 0. The Coccinelle semantic patch used to make this change is as follows: @@ type T; T *d; expression e; statement S; @@ d = – vmalloc + vzalloc (…); if (!d) S – memset(d, 0, sizeof(T)); Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Hans Verkuil Signed-off-by: …

Lire la suite

ALSA: ctxfi: Change structure initialisation to C99 style

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> For readability and to allow for structure randomisation, replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; …}; @@ identifier decl.i1,i2,decl.fld; …

Lire la suite

ALSA: usb-audio: Change structure initialisation to C99 style

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> To allow for structure randomisation, replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; …}; @@ identifier decl.i1,i2,decl.fld; expression e; position …

Lire la suite

crypto: drbg – fix semicolon.cocci warnings

Author: Wu Fengguang <fengguang.wu@intel.com> crypto/drbg.c:1637:39-40: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Stephan Mueller Signed-off-by: Fengguang Wu Acked-by: Stephan Mueller Signed-off-by: Herbert Xu — crypto/drbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/crypto/drbg.c b/crypto/drbg.c index ded8638..8b39f50 100644 — a/crypto/drbg.c +++ b/crypto/drbg.c @@ -1632,7 +1632,7 @@ static int …

Lire la suite

ALSA: seq_oss: Change structure initialisation to C99 style

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; …}; @@ identifier decl.i1,i2,decl.fld; expression e; position bad.p, bad.fix; @@ struct i1 …

Lire la suite

sound: aedsp16: Change structure initialisation to C99 style

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; …}; @@ identifier decl.i1,i2,decl.fld; expression e; position bad.p, bad.fix; @@ struct i1 …

Lire la suite

pinctrl: xway: Change structure initialisation to c99 style

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; …}; @@ identifier decl.i1,i2,decl.fld; expression e; position bad.p, bad.fix; @@ struct i1 …

Lire la suite

btrfs: simpilify btrfs_subvol_inherit_props

Author: Jeff Mahoney <jeffm@suse.com> We just need a superblock, but we look it up using two different roots depending on the call site. Let’s just use a superblock pointer initialized at the outset. This is mostly for Coccinelle not to choke on my root push up set. Signed-off-by: Jeff Mahoney Signed-off-by: David Sterba — fs/btrfs/props.c …

Lire la suite

[media] fix semicolon.cocci warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/media/dvb-frontends/helene.c:750:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Abylay Ospan Signed-off-by: Fengguang Wu Signed-off-by: Mauro Carvalho Chehab — drivers/media/dvb-frontends/helene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/media/dvb-frontends/helene.c b/drivers/media/dvb-frontends/helene.c index 693b5bf..97a8982 100644 — a/drivers/media/dvb-frontends/helene.c +++ b/drivers/media/dvb-frontends/helene.c @@ -747,7 +747,7 @@ static int helene_set_params(struct dvb_frontend …

Lire la suite

rxrpc: fix ptr_ret.cocci warnings

Author: Wu Fengguang <fengguang.wu@intel.com> net/rxrpc/rxkad.c:1165:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: David Howells Signed-off-by: Fengguang Wu Signed-off-by: David S. Miller — net/rxrpc/rxkad.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-)   diff –git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index 6b726a0..bab56ed 100644 — a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c @@ …

Lire la suite