Category: Linux

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

staging: emxx_udc: 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

staging: iio: Documentation: 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

staging: lustre: libcfs: 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

staging: lustre: lmv: 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

staging: lustre: lov: 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

staging: media: davinci_vpfe: 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