Quentin LAMBERT

Author's posts

staging: lustre: obdecho: remove unused variable

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; … when != len when strict -len = +return f(…); -return len; Signed-off-by: …

Continue reading

staging: lustre: osc: remove unused variable

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; … when != len when strict -len = +return f(…); -return len; Signed-off-by: …

Continue reading

staging: lustre: ptlrpc: remove unused variable

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; … when != len when strict -len = +return f(…); -return len; Signed-off-by: …

Continue reading

staging: rtl8188eu: os_dep: remove unused variable

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; … when != len when strict -len = +return f(…); -return len; Signed-off-by: …

Continue reading

staging: vt6655: remove unused variable

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; … when != len when strict -len = +return f(…); -return len; Signed-off-by: …

Continue reading

staging: wlan-ng: remove unused variable

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch removes variables that were simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; … when != len when strict -len = +return f(…); -return len; Signed-off-by: Aya …

Continue reading

staging: wlan-ng: remove unused variable

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; … when != len when strict -len = +return f(…); -return len; Signed-off-by: …

Continue reading

platform/chrome: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> drivers/platform/chrome/cros_ec_lpc.c:272:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Bill Richardson Signed-off-by: Fengguang Wu Signed-off-by: Olof Johansson — drivers/platform/chrome/cros_ec_lpc.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c …

Continue reading

staging: vt6656: replace memcpy by ether_addr_copy

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch fixes the following checkpatch.pl warning: Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) The changes were applied using the following coccinelle rule: @@ expression e1, e2; @@ – memcpy(e1, e2, ETH_ALEN); + ether_addr_copy(e1, e2); All variables defined in vnt_mac_set_key start at even offsets making the variables aligned …

Continue reading

staging: comedi: rewrite the right hand side of an assignment

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch rewrites the right hand side of an assignment for expressions of the form: a = (a b); to be: a = b; where = >. This issue was detected and resolved using the following coccinelle script: @@ identifier i; expression e; @@ -i = (i >> e); +i >>= …

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.