Category: Linux

Staging: lustre: lustre: mgc: Remove variable that is not very useful.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch removes a variable that is not very useful using coccinelle. The semantic patch used was: @@ identifier ret; @@ -int ret = 0; … when != ret when strict -return ret; +return 0; Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/mgc/mgc_request.c | 8 ++—— 1 file changed, 2 …

Continue reading

Staging: lustre: lustre: lmv: Removed variable that is not very useful.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch removes a variable that is not very useful using coccinelle. The semantic patch used was: @@ identifier ret; @@ -int ret = 0; … when != ret when strict -return ret; +return 0; Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/lmv/lmv_obd.c | 3 +– 1 file changed, 1 …

Continue reading

Staging: rtl8723au: core: Removed variable that is always 0.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch removes a variable that is always 0 using coccinelle. The following semantic patch was used: @@ identifier ret; @@ -int ret = 0; … when != ret when strict -return ret; +return 0; Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8723au/core/rtw_ap.c | 13 +++++——– 1 file changed, 5 …

Continue reading

Staging: rtl8723au: os_dep: Removed variable that is always 0.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch removes a variable that is always 0 using coccinelle. The semaintic patch used is as follows: @@ identifier ret; @@ -int ret = 0; … when != ret when strict -return ret; +return 0; Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 15 ++++———– 1 file changed, …

Continue reading

Staging: rtl8188eu: core: Remove variable that is not very useful.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch removes a variable which is not very useful using coccinelle. The following semaintic patch was used: @@ identifier ret; @@ -int ret = 0; … when != ret when strict -return ret; +return 0; Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/core/rtw_ap.c | 13 +++++——– 1 file changed, …

Continue reading

Staging: comedi: Compressed two lines of code into one.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch compressed two lines of code into one using coccinelle and removed an unused variable. The semantic patch used is as follows: @@ expression ret; identifier f; @@ -ret = +return f(…); -return ret; Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman — drivers/staging/comedi/comedi_fops.c | 5 +—- 1 file changed, 1 …

Continue reading

Staging: comedi: drivers: Compressed two lines of code into one.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch compresses two lines of code into one using coccinelle and removes an unused variable. The following semantic patch was used: @@ expression ret; identifier f; @@ -ret = +return f(…); -return ret; Signed-off-by: Heena Sirwani Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/staging/comedi/drivers/mite.c | 5 +—- 1 file …

Continue reading

Staging: dgnc: Compress two lines of code into one.

Author: Heena Sirwani <heenasirwani@gmail.com> The following patch merges two lines of code into one using coccinelle and removes unused variables. The semantic patch used is as follows: @@ expression ret; identifier f; @@ -ret = +return f(…); -return ret; Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman — drivers/staging/dgnc/dgnc_cls.c | 6 ++—- 1 file changed, 2 insertions(+), …

Continue reading

Staging: lustre: Replace non-standard spinlock macro definations

Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch replaces non-standard spin lock macro with standard linux function. This is done using Coccinelle and semantic patch used is as follows: @@ expression x; @@ – TREE_READ_LOCK_IRQ(x) + spin_lock_irq(&(x)->tree_lock) @@ expression x; @@ – TREE_READ_UNLOCK_IRQ(x) + spin_unlock_irq(&(x)->tree_lock) Also semantic patch result is modified by droping ->, inner & and …

Continue reading

Staging: lustre: Replace non-standard spin-lock’s macro

Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch replaces non-standard spin lock macro with standard linux function. This is done using Coccinelle and semantic patch used is as follows: @@ expression x; @@ – TREE_READ_LOCK_IRQ(x) + spin_lock_irq(&x->tree_lock) @@ expression x; @@ – TREE_READ_UNLOCK_IRQ(x) + spin_unlock_irq(&x->tree_lock) Signed-off-by: Vaishali Thakkar Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/llite/dir.c | …

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.