Articles de cet auteur
Oct 08 2014
staging: comedi: drivers: use DIV_ROUND_UP
Author: Tapasweni Pathak <tapaswenipathak@gmail.com> The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) – 1) / (d)) but is perhaps more readable. Coccinelle script used : // @haskernel@ @@ @depends on haskernel@ expression n,d; @@ ( – (n + d – 1) / d + DIV_ROUND_UP(n,d) | – (n + (d – 1)) / …
Oct 08 2014
staging: comedi: use DIV_ROUND_UP
Author: Tapasweni Pathak <tapaswenipathak@gmail.com> The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) – 1) / (d)) but is perhaps more readable. Coccinelle script used : // @haskernel@ @@ @depends on haskernel@ expression n,d; @@ ( – (n + d – 1) / d + DIV_ROUND_UP(n,d) | – (n + (d – 1)) / …
Oct 07 2014
3c59x: fix bad split of cpu_to_le32(pci_map_single())
Author: Sylvain « ythier » Hitier <sylvain.hitier@gmail.com> In commit 6f2b6a3005b2c34c39f207a87667564f64f2f91a, # 3c59x: Add dma error checking and recovery the intent is to split out the mapping from the byte-swapping in order to insert a dma_mapping_error() check. Kinda this semantic patch: // See http://coccinelle.lip6.fr/ // // Beware, grouik-and-dirty! @@ expression DEV, X, Y, Z; @@ – cpu_to_le32(pci_map_single(DEV, X, …
Oct 07 2014
Staging: lustre: lustre: osc: 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/osc/osc_request.c | 4 +— 1 file changed, 1 …
Oct 07 2014
Staging: lustre: lustre: osc: 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/osc/osc_cache.c | 3 +– 1 file changed, 1 …
Oct 07 2014
Staging: lustre: lustre: lov: 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/lov/lov_obd.c | 3 +– 1 file changed, 1 …
Oct 07 2014
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 …
Oct 07 2014
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 …
Oct 07 2014
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 …
Oct 07 2014
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, …