[PATCH v2] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-12 Thread Shraddha Barke
Coherent mapping guarantees that the device and CPU are in sync. Signed-off-by: Shraddha Barke --- Changes in v2- Updated commit message and removed error message. drivers/platform/goldfish/goldfish_pipe.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-11 Thread Shraddha Barke
dmam_alloc_coherent. Coherent mapping guarantees that the device and CPU are in sync. Signed-off-by: Shraddha Barke --- drivers/platform/goldfish/goldfish_pipe.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-05 Thread Shraddha Barke
dmam_alloc_coherent. Coherent mapping guarantees that the device and CPU are in sync. Signed-off-by: Shraddha Barke --- drivers/platform/goldfish/goldfish_pipe.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform

[PATCH v3] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Shraddha Barke
dmam_alloc_coherent. Coherent mapping guarantees that the device and CPU are in sync. Signed-off-by: Shraddha Barke --- Changes in v3- Both writel in the same style Changes in v2- Updated commit message, use upper_32_bits and lower_32_bits drivers/platform/goldfish/goldfish_pipe.c | 14 +++--- 1

[PATCH v2] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Shraddha Barke
dmam_alloc_coherent. Coherent mapping guarantees that the device and CPU are in sync. Signed-off-by: Shraddha Barke --- Changes in v2- Updated commit message, use upper_32_bits and lower_32_bits drivers/platform/goldfish/goldfish_pipe.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Shraddha Barke
address for the allocated memory to transfer to the device. Replace the combination of devm_kzalloc and _pa() with dmam_alloc_coherent. Coherent mapping guarantees that the device and CPU are in sync. Signed-off-by: Shraddha Barke --- drivers/platform/goldfish/goldfish_pipe.c | 19

Re: [PATCH] Staging: iio: meter: Use devm functions

2015-10-04 Thread Shraddha Barke
On Sun, 4 Oct 2015, Jonathan Cameron wrote: On 04/10/15 05:34, Shraddha Barke wrote: Introduce use of managed resource function devm_iio_trigger_alloc instead of iio_trigger_alloc and devm_request_irq instead of request_irq Remove corresponding calls to iio_trigger_free and free_irq in the

[PATCH] Staging: iio: meter: Use devm functions

2015-10-03 Thread Shraddha Barke
dropped. Signed-off-by: Shraddha Barke --- drivers/staging/iio/meter/ade7758_trigger.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/drivers/staging/iio/meter/ade7758_trigger.c b/drivers/staging/iio/meter/ade7758_trigger.c index 5b35a7f

[PATCH] Clk: tegra: Use module_platform_driver

2015-09-25 Thread Shraddha Barke
ic e(...) { platform_driver_unregister(&x); } @c depends on a && b@ identifier a.f; declarer name module_init; @@ -module_init(f); @d depends on a && b && c@ identifier b.e, a.x; declarer name module_exit; declarer name module_platform_driver; @@ -module_exit(e); +module_platform_driver(x)

[PATCH] Scsi: Use module_pci_driver

2015-09-21 Thread Shraddha Barke
Use module_pci_driver for drivers whose init and exit functions only register and unregister Signed-off-by: Shraddha Barke --- drivers/scsi/initio.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 6a926ba

[PATCH v2] Staging: fbtft: Remove debug messages

2015-09-21 Thread Shraddha Barke
Remove debug messages related to fbtft_par_dbg(DEBUG_INIT_DISPLAY.. ) as this info can be obtained using kernel function tracer Signed-off-by: Shraddha Barke --- Change in v2- No change. Resending due to malformed patch error drivers/staging/fbtft/fb_agm1264k-fl.c | 2 -- drivers/staging

[PATCH] Staging: ft1000: use usleep_range()

2015-09-13 Thread Shraddha Barke
This patch fixes checkpatch.pl warning WARNING : msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt Signed-off-by: Shraddha Barke --- drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --gi

[PATCH v4 3/3] Staging: rtl8188eu: Bool tests don't need comparisons

2015-09-13 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Signed-off-by: Shraddha Barke --- Changes in v4- Remove unnecessary parenthesis drivers/staging/rtl8188eu/core/rtw_cmd.c | 12 +-- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 28

[PATCH v4 2/3] Staging: vt6656: Bool tests don't need comparisons

2015-09-13 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Signed-off-by: Shraddha Barke --- Change in v4- No changes drivers/staging/vt6656/wcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c

[PATCH v4 1/3] Staging: rtl8723au: core: Bool tests don't need comparisons

2015-09-13 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Signed-off-by: Shraddha Barke --- Changes in v4- No change drivers/staging/rtl8723au/core/rtw_ap.c | 10 +- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 28 +-- 2 files changed

[PATCH v4 1/3] Staging: rtl8723au: core: Bool tests don't need comparisons

2015-09-13 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Changes in v4- No change Signed-off-by: Shraddha Barke --- drivers/staging/rtl8723au/core/rtw_ap.c | 10 +- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 28 +-- 2 files changed, 19

[PATCH v4 3/3] Staging: rtl8188eu: Bool tests don't need comparisons

2015-09-13 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Changes in v4- Remove unnecessary braces Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 12 +-- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 28 +- 2

[PATCH v4 2/3] Staging: vt6656: Bool tests don't need comparisons

2015-09-13 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Change in v4- No changes Signed-off-by: Shraddha Barke --- drivers/staging/vt6656/wcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c

[PATCH] Staging: rtl8192u: Remove unnecessary printk

2015-09-12 Thread Shraddha Barke
This patch removes the commented printk inside else block as it is not needed. Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging

[PATCH v3 3/3] Staging: rtl8188eu: Bool tests don't need comparisons

2015-09-12 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Changes in v3- Fix made manually Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 12 +-- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 28 +- 2 files

[PATCH v3 1/3] Staging: rtl8723au: core: Bool tests don't need comparisons

2015-09-12 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Changes in v3- Made fix manually Signed-off-by: Shraddha Barke --- drivers/staging/rtl8723au/core/rtw_ap.c | 13 ++--- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 28 +-- 2 files

[PATCH v3 2/3] Staging: vt6656: Bool tests don't need comparisons

2015-09-12 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Change in v3- Fix made manually Signed-off-by: Shraddha Barke --- drivers/staging/vt6656/wcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656

[PATCH v2 3/4] Staging: rtl8712: Bool tests don't need comparisons

2015-09-12 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fix made using Coccinelle Changes in v2- More instances covered Signed-off-by: Shraddha Barke --- drivers/staging/rtl8712/rtl871x_ioctl_set.c | 24 - drivers/staging/rtl8712/rtl871x_mlme.c | 77

[PATCH v2 4/4] Staging: rtl8188eu: Bool tests don't need comparisons

2015-09-12 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fix made using Coccinelle Changes in v2- Included more instances of true and false Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 12 ++-- drivers/staging/rtl8188eu/core

[PATCH v2 2/4] Staging: vt6656: Bool tests don't need comparisons

2015-09-12 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fix made using Coccinelle Change in v2- Fixing logical error Signed-off-by: Shraddha Barke --- drivers/staging/vt6656/wcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/wcmd.c

[PATCH v2 1/4] Staging: rtl8723au: Bool tests don't need comparisons

2015-09-12 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fixed using Coccinelle Change in v2- Consider cases with false Signed-off-by: Shraddha Barke --- drivers/staging/rtl8723au/core/rtw_ap.c | 4 ++-- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 4

[PATCH v2] Staging: ft1000: ft1000-usb: Use USB API functions rather than constants

2015-09-12 Thread Shraddha Barke
Introduce the use of the function usb_endpoint_is_bulk_in(). Signed-off-by: Shraddha Barke --- Change in v2- Make commmit message clearer drivers/staging/ft1000/ft1000-usb/ft1000_usb.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ft1000/ft1000

[PATCH 3/4] Staging: rtl8712: Bool tests don't need comparisons

2015-09-11 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fix made using Coccinelle Signed-off-by: Shraddha Barke --- drivers/staging/rtl8712/rtl871x_ioctl_set.c | 4 -- drivers/staging/rtl8712/rtl871x_mlme.c | 3 +-- drivers/staging/rtl8712/rtl871x_recv.c | 4

[PATCH 4/4] Staging: vt6656: Bool tests don't need comparisons

2015-09-11 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fix made using Coccinelle Signed-off-by: Shraddha Barke --- drivers/staging/vt6656/wcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c

[PATCH 1/4] Staging: rtl8723au: Bool tests don't need comparisons

2015-09-11 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fixed using Coccinelle Signed-off-by: Shraddha Barke --- drivers/staging/rtl8723au/core/rtw_ap.c | 4 ++-- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8723au/core

[PATCH 2/4] Staging: rtl8188eu: Bool tests don't need comparisons

2015-09-11 Thread Shraddha Barke
This patch removes comparisons to true/false values on bool variables. Fix made using Coccinelle Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 4 ++-- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 6 drivers/staging/rtl8188eu/core/rtw_recv.c

[PATCH] Staging: ft1000: ft1000-usb: Use USB API functions rather than constants

2015-09-11 Thread Shraddha Barke
This patch introduces the use of the function usb_endpoint_is_bulk_in(). Signed-off-by: Shraddha Barke --- drivers/staging/ft1000/ft1000-usb/ft1000_usb.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c b/drivers/staging

[PATCH v2 01/16] Staging: speakup: varhandlers.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- Considering cases with != NULL also drivers/staging/speakup/varhandlers.c | 18

[PATCH v2 02/16] Staging: speakup: devsynth.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/speakup/devsynth.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 04/16] Staging: speakup: kobjects.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/speakup/kobjects.c | 16 1 file changed, 8

[PATCH v2 03/16] Staging: speakup: serialio.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/speakup/serialio.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 09/16] Staging: lustre: obdclass: obd_config.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change .../staging/lustre/lustre/obdclass/obd_config.c| 30 +++--- 1

[PATCH v2 10/16] Staging: lustre: obdclass: genops.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Changes in v2- Considering cases with != NULL also drivers/staging/lustre/lustre/obdclass/genops.c | 54

[PATCH v2 08/16] Staging: lustre: libcfs: libcfs_mem.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/lustre/lustre/libcfs/libcfs_mem.c | 10 +- 1 file changed, 5

[PATCH v2 07/16] Staging: lustre: libcfs: libcfs_lock.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/lustre/lustre/libcfs/libcfs_lock.c | 6 +++--- 1 file changed, 3

[PATCH v2 11/16] Staging: rtl8188eu: hal: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 16/16] Staging: rtl8188eu: os_dep: osdep_service.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/rtl8188eu/os_dep/osdep_service.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 14/16] Staging: rtl8188eu: os_dep: recv_linux.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/rtl8188eu/os_dep/recv_linux.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 15/16] Staging: rtl8188eu: os_dep: mlme_linux.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No changes drivers/staging/rtl8188eu/os_dep/mlme_linux.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 13/16] Staging: rtl8188eu: hal: rtl8188eu_xmit.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Changes in v2- No change drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 05/16] Staging: rtl8188eu: core: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Changes in v2- No change drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 6 +++--- 1 file changed, 3

[PATCH v2 06/16] Staging: rtl8188eu: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change. drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 12/16] Staging: rtl8188eu: hal: Hal8188ERateAdaptive.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- Change in v2- No change drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 14 +++--- 1 file

[PATCH 06/16] Staging: rtl8188eu: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 14/16] Staging: rtl8188eu: os_dep: recv_linux.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 16/16] Staging: rtl8188eu: os_dep: osdep_service.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/os_dep/osdep_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 12/16] Staging: rtl8188eu: hal: Hal8188ERateAdaptive.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 14 +++--- 1 file changed, 7 insertions(+), 7

[PATCH 15/16] Staging: rtl8188eu: os_dep: mlme_linux.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/os_dep/mlme_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 13/16] Staging: rtl8188eu: hal: rtl8188eu_xmit.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 05/16] Staging: rtl8188eu: core: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 11/16] Staging: rtl8188eu: hal: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 09/16] Staging: lustre: obdclass: obd_config.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- .../staging/lustre/lustre/obdclass/obd_config.c| 30 +++--- 1 file changed, 15 insertions

[PATCH 10/16] Staging: lustre: obdclass: genops.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/obdclass/genops.c | 52 - 1 file changed, 26 insertions

[PATCH 07/16] Staging: lustre: libcfs: libcfs_lock.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/libcfs/libcfs_lock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH 08/16] Staging: lustre: libcfs: libcfs_mem.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/libcfs/libcfs_mem.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[PATCH 03/16] Staging: speakup: serialio.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/speakup/serialio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 04/16] Staging: speakup: kobjects.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/speakup/kobjects.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

[PATCH 02/16] Staging: speakup: devsynth.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/speakup/devsynth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 01/16] Staging: speakup: varhandlers.c: Remove explicit NULL comparison

2015-09-10 Thread Shraddha Barke
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke --- drivers/staging/speakup/varhandlers.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions

[PATCH 6/6] Staging: comedi: Prefer using the BIT macro

2015-09-10 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/comedi/drivers/mpc624.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-)

[PATCH 5/6] Staging: lustre: ptlrpc: Prefer using the BIT macro

2015-09-10 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/ptlrpc/layout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/s

[PATCH 4/6] Staging: iio: cdc: Prefer using the BIT macro

2015-09-10 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/cdc/ad7746.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/i

[PATCH 1/6] Staging: iio: addac: Prefer using the BIT macro

2015-09-10 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/addac/adt7316.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/s

[PATCH 2/6] Staging: iio: meter: Prefer using the BIT macro

2015-09-10 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/meter/ade7753.c | 8 drivers/staging/iio/meter/ade7754.c | 6 +++--- drivers/staging/iio

[PATCH 3/6] Staging: lustre: libcfs: Prefer using the BIT macro

2015-09-10 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/libcfs/hash.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/s

Re: [PATCH 5/6] Staging: iio: impedance-analyzer: Prefer using the BIT macro

2015-09-10 Thread Shraddha Barke
On Thu, 10 Sep 2015, Julia Lawall wrote: On Thu, 10 Sep 2015, Shraddha Barke wrote: This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) This doesn&

[PATCH 3/6] Staging: iio: meter: Prefer using the BIT macro

2015-09-09 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/meter/ade7753.c | 8 drivers/

[PATCH 4/6] Staging: iio: cdc: ad7746.c: Prefer using the BIT macro

2015-09-09 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/cdc/ad

[PATCH 1/6] Staging: iio: addac: adt7316.c : Prefer using BIT macro

2015-09-09 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/addac/adt7316.c | 14 +++--- 1 file

[PATCH 5/6] Staging: iio: impedance-analyzer: Prefer using the BIT macro

2015-09-09 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/impedance-analyzer/ad5933.c | 22 +++---

[PATCH 2/6] Staging: iio: cdc: ad7152.c: Prefer using the BIT macro

2015-09-09 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/cdc/ad7152.c | 20 ++-- 1 file

[PATCH 6/6] Staging: iio: resolver: Prefer using the BIT macro

2015-09-09 Thread Shraddha Barke
This patch replaces bit shifting on 1 with the BIT(x) macro as it's extensively used by other function in this driver. This was done with coccinelle: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Shraddha Barke --- drivers/staging/iio/resolver/ad2s1210.c | 2 +- 1 file changed,

[PATCH 3/5] Staging: rtl8192u: ieee80211: ieee80211_module.c: Replace "#include " with "#include "

2015-09-09 Thread Shraddha Barke
Fix checkpatch.pl warning "Use #include instead of " Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/stagin

[PATCH 2/5] Staging: rtl8192u: ieee80211: ieee80211_softmac.c: Replace "#include " with "#include "

2015-09-09 Thread Shraddha Barke
Fix checkpatch.pl warning "Use #include instead of " Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/stagin

[PATCH 5/5] Staging: wilc1000: Replace "#include " with "#include "

2015-09-09 Thread Shraddha Barke
Fix checkpatch.pl warning "Use #include instead of " Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/linux_wlan_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/staging/wilc1000/linux_wlan_s

[PATCH 4/5] Staging: rtl8192u: r8192U_core.c: Replace "#include " with "#include "

2015-09-09 Thread Shraddha Barke
Fix checkpatch.pl warning "Use #include instead of " Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c ind

[PATCH 1/5] Staging: rtl8192u: ieee80211: Replace "#include " with "#include "

2015-09-09 Thread Shraddha Barke
Fix checkpatch.pl warning "Use #include instead of " Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8192u

[PATCH 2/3] Staging: rtl8192e: Replace memcpy by ethr_addr_copy

2015-09-06 Thread Shraddha Barke
The patch replaces memcpy with ethr_addr_copy The changes were applied using the following coccinelle rule: @@ expression e1, e2; @@ - memcpy(e1, e2, ETH_ALEN); + ether_addr_copy(e1, e2); Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 4 ++-- 1 file changed, 2

[PATCH 1/3] Staging: rtl8712: Replace memcpy by ether_addr_copy

2015-09-06 Thread Shraddha Barke
This patch replaces memcpy by ethr_addr_copy The change was made using Coccinelle @@ expression e1, e2; @@ - memcpy(e1, e2, ETH_ALEN); + ether_addr_copy(e1, e2); Signed-off-by: Shraddha Barke --- drivers/staging/rtl8712/rtl871x_mp_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 3/3] Staging: rtl8192u: r8192U_core.c: Replace memcpy with eth_addr_copy

2015-09-06 Thread Shraddha Barke
This patch replaces memcpy with eth_addr_copy The changes were applied using the following coccinelle rule: @@ expression e1, e2; @@ - memcpy(e1, e2, ETH_ALEN); + ether_addr_copy(e1, e2); Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1

[PATCH 02/10] Staging: lustre: ptlrpc: Remove braces for single statement blocks

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/ptlrpc/client.c

[PATCH 08/10] Staging: android: Remove unnecessary braces.

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/android/ashmem.c | 3 +-- 1

[PATCH 04/10] Staging: lustre: obdclass: Remove braces for single statement blocks

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/obdclass

[PATCH 09/10] Staging: speakup: Remove braces for single statement blocks

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/speakup/speakup_dectlk.c | 3

[PATCH 05/10] Staging: lustre: llite: llite_close.c: Remove unnecessary braces

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/llite

[PATCH 10/10] Staging: rtl8192e: rtl_wx.c: Remove braces for single statement blocks

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 3

[PATCH 06/10] Staging: lustre: llite: llite_lib.c: Remove unnecessary braces

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/llite

[PATCH 03/10] Staging: lustre: libcfs: Remove braces for single statement blocks

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/libcfs/linux

[PATCH 07/10] Staging: lustre: lnet: Remove braces for single statement blocks

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lnet/klnds/o2iblnd

[PATCH 01/10] Staging: rtl8723au: hal: Remove braces for single statement blocks

2015-09-05 Thread Shraddha Barke
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The error was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/rtl8723au/hal/usb_halinit.c | 5

[PATCH 3/3] Staging: unisys: Remove useless cast on void pointer

2015-08-10 Thread Shraddha Barke
void pointers do not need to be cast to other pointer types. The semantic patch used to find this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Shraddha Barke --- drivers/staging/unisys/visor

[PATCH 1/3] Staging: wilc1000: Remove null check before kfree

2015-08-10 Thread Shraddha Barke
; // smpl> Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/linux_wlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 3e55a8a..3dcd6e5 100644 --- a/drivers/staging/wilc1

[PATCH 2/3] Staging: lustre: libcfs: Remove unnecessary cast on void*

2015-08-10 Thread Shraddha Barke
This patch does away with the cast on void * as it is unnecessary. Semantic patch used is as follows: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (void *) e ) Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/lib

[PATCH v2] Staging: unisys: visornic: Use kcalloc instead of kzalloc.

2015-08-06 Thread Shraddha Barke
This patch converts kzalloc to kcalloc. The advantage of kcalloc is, that will take care of integer overflows which could result from the multiplication and it is also nicer to read. The change was made using Coccinelle. Signed-off-by: Shraddha Barke --- Changes in v2; -Make commit message

[PATCH] Staging: unisys: visornic: Use kcalloc instead of kzalloc.

2015-08-06 Thread Shraddha Barke
This patch uses kcalloc instead of kzalloc function. The change was made using Coccinelle. Signed-off-by: Shraddha Barke --- drivers/staging/unisys/visornic/visornic_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c

  1   2   >