Quentin LAMBERT

Articles de cet auteur

staging: rtl8723au: Do not use comparisons on bool tests

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> This patch removes unnecessary comparisons to bool. It fixes the following warning detected using coccinelle tool: WARNING: Comparison to bool. Signed-off-by: Roberta Dobrescu Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8723au/core/rtw_ap.c | 2 +- drivers/staging/rtl8723au/core/rtw_cmd.c | 2 +- drivers/staging/rtl8723au/core/rtw_mlme.c | 2 +- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8723au/core/rtw_pwrctrl.c | 2 +- drivers/staging/rtl8723au/core/rtw_wlan_util.c | 2 +- …

Lire la suite

staging: rtl8188eu: core: Remove redundant memset before memcpy

Author: Tapasweni Pathak <tapaswenipathak@gmail.com> The region set by the call to memset, immediately overwritten by the subsequent call to memcpy makes the memset redundant. This patch removes the redundant memset before memcpy using the following coccinelle script: @@ expression e1,e2,e3,e4; @@ – memset(e1,e2,e3); memcpy(e1,e4,e3); Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 1 – …

Lire la suite

staging: rtl8723au: delete successive assignments to the same location

Author: Jiayi Ye <yejiayily@gmail.com> Successive assignments to the same location is meaningless and can be deleted. The Coccinelle semantic patch was used to find cases. @@ expression e1,e2,e3; @@ ( ()=e2; | ()=e2; | ()=e2; | ()=e2; | e1=e2; e1 = ; | *e1=e2; *e1=e3; ) Signed-off-by: Jiayi Ye Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman …

Lire la suite

staging: rtl8192u: delete successive assignments to the same location

Author: Jiayi Ye <yejiayily@gmail.com> Successive assignments to the same location is meaningless and can be deleted. The Coccinelle semantic patch was used to find cases. @@ expression e1,e2,e3; @@ ( ()=e2; | ()=e2; | ()=e2; | ()=e2; | e1=e2; e1 = ; | *e1=e2; *e1=e3; ) Signed-off-by: Jiayi Ye Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman …

Lire la suite

staging: rtl8192e: delete successive assignments to the same location

Author: Jiayi Ye <yejiayily@gmail.com> Successive assignments to the same location is meaningless and can be deleted. The Coccinelle semantic patch was used to find cases. @@ expression e1,e2,e3; @@ ( ()=e2; | ()=e2; | ()=e2; | ()=e2; | e1=e2; e1 = ; | *e1=e2; *e1=e3; ) Signed-off-by: Jiayi Ye Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman …

Lire la suite

staging: dgnc: delete successive assignments to the same location

Author: Jiayi Ye <yejiayily@gmail.com> Successive assignments to the same location is meaningless and can be deleted. The Coccinelle semantic patch was used to find cases. @@ expression e1,e2,e3; @@ ( ()=e2; | ()=e2; | ()=e2; | ()=e2; | e1=e2; e1 = ; | *e1=e2; *e1=e3; ) Signed-off-by: Jiayi Ye Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman …

Lire la suite

staging: lustre: lnet: klnds: o2iblnd: fix null dereference on failed path in o2iblnd.c

Author: Jiayi Ye <yejiayily@gmail.com> If net is null and failed path is executed, dereference null may happen. This patch fixes it. The following Coccinelle semantic patch was used. @@ expression E, E1; identifier f; statement S1,S2,S3; @@ * if (E == NULL) { … when != if (E == NULL) S1 else S2 when != …

Lire la suite

staging: remove unneeded parentheses around the right hand side of an assignment

Author: Jiayi Ye <yejiayily@gmail.com> In assignments such as value = (FLASH_CMD_STATUS_REG_READ

staging: xgifb: Removed an unnecessary assignment statement

Author: Sarah Khan <sarahjmi07@gmail.com> Used coccinelle patch @@ expression data; identifier f; @@ -data = +return f(…); -return (data); Signed-off-by: Sarah Khan Signed-off-by: Greg Kroah-Hartman — drivers/staging/xgifb/vb_util.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   diff –git a/drivers/staging/xgifb/vb_util.c b/drivers/staging/xgifb/vb_util.c index 1b452f8..be3437ca 100644 — a/drivers/staging/xgifb/vb_util.c +++ b/drivers/staging/xgifb/vb_util.c @@ -9,11 +9,8 @@ void xgifb_reg_set(unsigned …

Lire la suite

staging: rtl8188eu: core: fix null dereference on exit path in rtw_mlme.c

Author: Jiayi Ye <yejiayily@gmail.com> If adapter is null, null dereference may occur. This patch fixes it. The following Coccinelle semantic patch was used to find the case. @@ expression E, E1; identifier f; statement S1,S2,S3; @@ * if (E == NULL) { … when != if (E == NULL) S1 else S2 when != E …

Lire la suite

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.