Catégorie : Linux

staging: rtl8723au: hal: Remove useless intialisation

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Remove intialisation of a variable that is immediately reassigned. The problem was found using coccinelle semantic patch and further opportunities were identified by hand. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x – = C ; x …

Lire la suite

Staging: most: Remove exceptional & on function name

Author: Shraddha Barke <shraddha.6596@gmail.com> In this file, function names are otherwise used as pointers without &. A simplified version of the Coccinelle semantic patch that makes this change is as follows: // @r@ identifier f; @@ f(…) { … } @@ identifier r.f; @@ – &f + f // Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman …

Lire la suite

Staging: iio: Remove exceptional & on function name

Author: Shraddha Barke <shraddha.6596@gmail.com> In this file, function names are otherwise used as pointers without &. A simplified version of the Coccinelle semantic patch that makes this change is as follows: // @r@ identifier f; @@ f(…) { … } @@ identifier r.f; @@ – &f + f // Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman …

Lire la suite

Staging: comedi: Remove exceptional & on function name

Author: Shraddha Barke <shraddha.6596@gmail.com> n this file, function names are otherwise used as pointers without &. A simplified version of the Coccinelle semantic patch that makes this change is as follows: // @r@ identifier f; @@ f(…) { … } @@ identifier r.f; @@ – &f + f // Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman …

Lire la suite

soc: qcom: smd: delete unneeded of_node_put

Author: Julia Lawall <Julia.Lawall@lip6.fr> Device node iterators perform an of_node_put on each iteration, so putting an of_node_put before a continue results in a double put. A simplified version of the semantic match that finds this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator i; @@ i(…, child, …) { … …

Lire la suite

video: omapdss: delete unneeded of_node_put

Author: Julia Lawall <Julia.Lawall@lip6.fr> Device node iterators perform an of_node_put on each iteration, so putting an of_node_put before a continue results in a double put. A simplified version of the semantic match that finds this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator i; @@ i(…, child, …) { … …

Lire la suite

drm/nouveau/disp,pm: constify nvkm_object_func structures

Author: Julia Lawall <Julia.Lawall@lip6.fr> These nvkm_object_func structures are never modified. All other nvkm_object_func structures are declared as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Ben Skeggs — drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c | 2 +- drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c index 62d3fb6..2be8463 100644 — …

Lire la suite

[media] v4l: mt9t001: constify v4l2_subdev_internal_ops structure

Author: Julia Lawall <Julia.Lawall@lip6.fr> This v4l2_subdev_internal_ops structure is never modified. All other v4l2_subdev_internal_ops structures are declared as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab — drivers/media/i2c/mt9t001.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/media/i2c/mt9t001.c b/drivers/media/i2c/mt9t001.c index 702d562..16b8c70 100644 — …

Lire la suite

qlcnic: constify qlcnic_mbx_ops structure

Author: Julia Lawall <julia.lawall@lip6.fr> The only instance of a qlcnic_mbx_ops structure is never modified. Thus the declaration of the structure and all references to the structure type can be made const. In the definition of the qlcnic_mailbox structure, the ops field is no longer lined up with the other fields. This was left as is, …

Lire la suite

NFC: nxp-nci: constify nxp_nci_phy_ops structure

Author: Julia Lawall <Julia.Lawall@lip6.fr> The only instance of a nxp_nci_phy_ops structure is never modified. Thus the declaration of the structure and all references to the structure type can be made const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Samuel Ortiz — drivers/nfc/nxp-nci/core.c | 3 ++- drivers/nfc/nxp-nci/i2c.c | 2 +- drivers/nfc/nxp-nci/nxp-nci.h | 5 …

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.