Catégorie : 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 …

Lire la suite

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 …

Lire la suite

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 …

Lire la suite

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, …

Lire la suite

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, …

Lire la suite

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 …

Lire la suite

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 …

Lire la suite

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(+), …

Lire la suite

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 …

Lire la suite

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 | …

Lire la suite