Category: Linux

staging: wilc1000: linux_wlan: remove cast on void pointers

Author: Alison Schofield <amsfield22@gmail.com> Remove casts on void pointers. C programming language guarantees the conversion from void pointer to any other pointer type. Coccinelle patch: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[…] | ((T *)x)->f | – (T *) e ) Signed-off-by: Alison Schofield Signed-off-by: Greg …

Continue reading

staging: wilc1000: linux_mon: remove cast on void pointer

Author: Alison Schofield <amsfield22@gmail.com> Remove cast on void pointer. C programming language guarantees the conversion from void pointer to any other pointer type. Coccinelle patch: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[…] | ((T *)x)->f | – (T *) e ) Signed-off-by: Alison Schofield Signed-off-by: Greg …

Continue reading

staging: wilc1000: host_interface: remove cast on void pointers

Author: Alison Schofield <amsfield22@gmail.com> Remove cast on void pointers. C programming language guarantees the conversion from void pointer to any other pointer type. Coccinelle patch: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[…] | ((T *)x)->f | – (T *) e ) Signed-off-by: Alison Schofield Signed-off-by: Greg …

Continue reading

Staging: media: Remove multiple assignments

Author: Bhumika Goyal <bhumirks@gmail.com> Remove multiple assignments by factorizing them. Made a coccinelle script to match cases: @@ identifier a,b; constant c; @@ -a=b=c; +a=c; +b=c; Signed-off-by: Bhumika Goyal Signed-off-by: Greg Kroah-Hartman — drivers/staging/media/davinci_vpfe/dm365_isif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)   diff –git a/drivers/staging/media/davinci_vpfe/dm365_isif.c b/drivers/staging/media/davinci_vpfe/dm365_isif.c index 65f6ce3..cfad426 100644 — a/drivers/staging/media/davinci_vpfe/dm365_isif.c +++ …

Continue reading

Staging: wlan-ng: Remove multiple assignments

Author: Bhumika Goyal <bhumirks@gmail.com> Remove multiple assignments by factorizing them. Made a coccinelle script to match cases: @@ identifier a,b; constant c; @@ -a=b=c; +a=c; +b=c; Signed-off-by: Bhumika Goyal Signed-off-by: Greg Kroah-Hartman — drivers/staging/wlan-ng/p80211wep.c | 6 ++++– 1 file changed, 4 insertions(+), 2 deletions(-)   diff –git a/drivers/staging/wlan-ng/p80211wep.c b/drivers/staging/wlan-ng/p80211wep.c index e9f990a..22c7970 100644 — a/drivers/staging/wlan-ng/p80211wep.c +++ …

Continue reading

staging: rtl8192u: r8192U_dm: Replace MSECS with msecs_to_jiffies

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace driver specific macro MSECS with msecs_to_jiffies(). This was found using the following Coccinelle semantic patch: // @@ expression e; @@ – MSECS(e) + msecs_to_jiffies(e) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192u/r8192U_dm.c | 9 ++++++— 1 file changed, 6 insertions(+), 3 deletions(-)   diff –git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c …

Continue reading

staging: rtl8192u: ieee80211: ieee80211_rx: Replace MSECS with msecs_to_jiffies

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace driver specific macro MSECS with msecs_to_jiffies(). This was found using the following Coccinelle semantic patch: // @@ expression e; @@ – MSECS(e) + msecs_to_jiffies(e) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)   diff –git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c …

Continue reading

staging: rtl8192u: ieee80211: ieee80211_softmac: Replace MSECS with msecs_to_jiffies

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace driver specific macro MSECS with msecs_to_jiffies(). This was found using the following Coccinelle semantic patch: // @@ expression e; @@ – MSECS(e) + msecs_to_jiffies(e) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 9 ++++++— 1 file changed, 6 insertions(+), 3 deletions(-)   diff –git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c …

Continue reading

staging: rtl8192u: ieee80211: rtl819x_BAProc: Replace MSECS with msecs_to_jiffies

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace driver specific macro MSECS with msecs_to_jiffies(). This was found using the following Coccinelle semantic patch: // @@ expression e; @@ – MSECS(e) + msecs_to_jiffies(e) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c …

Continue reading

staging: rtl8192u: ieee80211: rtl819x_TSProc: Replace MSECS with msecs_to_jiffies

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Replace driver specific macro MSECS with msecs_to_jiffies(). This was found using the following Coccinelle semantic patch: // @@ expression e; @@ – MSECS(e) + msecs_to_jiffies(e) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | 9 ++++++— 1 file changed, 6 insertions(+), 3 deletions(-)   diff –git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c …

Continue reading