[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 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 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 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 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 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 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 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 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 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] 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

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 2756/2756] Staging: acpi: Merge lines for immediate return

2015-07-24 Thread Shraddha Barke
This patch merges two lines in a single line if immediate return is found. This is done using Coccinelle.Semantic patch used for this is as follows: @@ expression ret; identifier f; @@ -ret = +return f(...); -return ret; Signed-off-by: Shraddha Barke --- drivers/acpi/apei/erst.c | 10

[PATCH 2756/2756] Staging: acpi: Merge lines for immediate return

2015-07-24 Thread Shraddha Barke
This patch merges two lines in a single line if immediate return is found. This is done using Coccinelle.Semantic patch used for this is as follows: @@ expression ret; identifier f; @@ -ret = +return f(...); -return ret; Signed-off-by: Shraddha Barke --- drivers/acpi/apei/erst.c | 10

[PATCH 1/3] Staging: lustre: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- drivers/staging/lustre/lustre/libcfs/libcfs_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/libc

[PATCH 2/3] Staging: lustre: Replace comma with a semicolon.

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/mgc/mgc_r

[PATCH 3/3] Staging: netlogic: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- drivers/staging/netlogic/platform_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/netlogic/platform_net.c b/driv

[PATCH v2 1/3] Staging: lustre: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- Changes in v2: -No changes made. drivers/staging/lustre/lustre/libcfs/libcfs_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 2/3] Staging: lustre: Replace comma between expression statements by a semicolon.

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- Changes in v2: -Make subject more clearer. drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH v2 3/3] Staging: netlogic: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- Changes in v2: -No changes made. drivers/staging/netlogic/platform_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sta

[PATCH v3 2/3] Staging: lustre: mgc: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- Changes in v3: -Make subject clearer. drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 1/3] Staging: lustre: libcfs: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- Changes in v3: -Make subject clearer. drivers/staging/lustre/lustre/libcfs/libcfs_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH v3 3/3] Staging: netlogic: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- Changes in v3: -No changes made. drivers/staging/netlogic/platform_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sta

[PATCH v3 3/3] Staging: netlogic: Replace comma with a semicolon

2015-08-04 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; --- Changes in v3: -No changes made. drivers/staging/netlogic/platform_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sta

[PATCH] Staging: wilc1000: Remove typedefs for struct

2015-08-04 Thread Shraddha Barke
; @@ type tn.td; identifier tn.i; @@ -td + struct i Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/wilc_wlan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index def72fd

[PATCH v3 1/2] Staging: ft1000: ft1000-usb: use USB API functions rather than constants

2015-08-06 Thread Shraddha Barke
This patch introduces the use of the function usb_endpoint_is_bulk_in(). Signed-off-by: Shraddha Barke --- Changes in v3: -Change in commit message and add use of function usb_endpoint_is_bulk_in(). drivers/staging/ft1000/ft1000-usb/ft1000_usb.c | 8 ++-- 1 file changed, 2 insertions

[PATCH v3 2/2] Staging: media: lirc: use USB API functions rather than constants

2015-08-06 Thread Shraddha Barke
This patch introduces the use of the function usb_endpoint_type. The Coccinelle semantic patch that makes these changes is as follows: @@ struct usb_endpoint_descriptor *epd; @@ - (epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) + usb_endpoint_type(epd) Signed-off-by: Shraddh

[PATCH] Staging: lustre: obdclass: Use kasprintf instead of kzalloc and sprintf

2015-08-06 Thread Shraddha Barke
(a == NULL || ...) S ...> - sprintf(a,args); Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/obdclass/obd_config.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/obd_config.c b/drivers/staging/lustre/

[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

[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 : wilc1000: Remove unnecessary parentheses

2015-07-28 Thread Shraddha Barke
Remove parentheses around the right hand side of an assignment as they are not needed The semantic patch used is : @@ expression E; expression f; constant C; @@ ( f = (E == C) | f = - ( E - ) ) Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/wilc_sdio.c | 2 +- 1 file changed, 1

[PATCH] Staging : wilc1000: Remove braces for single statement blocks

2015-07-28 Thread Shraddha Barke
This patch fixes the following checkpatch.pl warning: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/coreconfigurator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000

[PATCH] Staging:wilc1000 :Remove braces for single statement blocks

2015-07-30 Thread Shraddha Barke
This patch fixes the following checkpatch.pl warning: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/coreconfigurator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000

[PATCH] Staging: wilc1000 :Insert blank line after declaration

2015-07-30 Thread Shraddha Barke
This patch fixes the following checkpatch.pl warning: WARNING: Missing a blank line after declarations Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/coreconfigurator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging

[PATCH] Staging : wilc1000 :Remove typedef from struct

2015-07-30 Thread Shraddha Barke
This patch fixes the following checkpatch.pl warning: WARNING: do not add new typedefs Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging

[PATCH] Staging:wilc1000 :Remove typedef from struct

2015-07-30 Thread Shraddha Barke
This patch fixes the following checkpatch.pl warning: WARNING: do not add new typedefs Signed-off-by: Shraddha Barke --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers

[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 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 2317/2317] Staging : bluetooth Trailing whitespaces

2015-07-24 Thread Shraddha Barke
This patch removes trailing whitespaces in the file bfusb.c Signed-off-by: Shraddha Barke --- drivers/bluetooth/bfusb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index fcfb72e..68c2717 100644 --- a/drivers

[PATCH 2318/2318] Staging : bluetooth Fix coding style issues

2015-07-24 Thread Shraddha Barke
This patch adds a space after the '}' brackets Signed-off-by: Shraddha Barke --- drivers/bluetooth/btbcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 1e1a432..cf7c81d 100644 --- a/drivers/bluetoo

[PATCH 2318/2318] Staging : bluetooth Fix coding style issues

2015-07-24 Thread Shraddha Barke
This patch adds a space after the '}' brackets Signed-off-by: Shraddha Barke --- drivers/bluetooth/btbcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 1e1a432..cf7c81d 100644 --- a/drivers/bluetoo

[PATCH] Staging:dgap :Compression of lines for immediate return

2015-07-26 Thread Shraddha Barke
This patch compresses two lines into a single line if immediate return statement is found. Also,remove variable rc as it is no longer needed. It is done using tool Coccinelle. And semantic patch used for this is as follows: @@ expression ret; identifier f; @@ -ret = +return f(...); -return

[PATCH] Staging : android :Replace comma with a semicolon

2015-07-27 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; Signed-off-by: Shraddha Barke --- drivers/staging/android/ashmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH] Staging : rtl8188eu : os_dep : Compression of lines for immediate return

2015-07-27 Thread Shraddha Barke
(...); - return i; ) Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c index 38dba14

[PATCH] Staging: dgnc: Merge lines and remove unused variable for immediate return

2015-07-27 Thread Shraddha Barke
(...); - return i; ) Signed-off-by: Shraddha Barke --- drivers/staging/dgnc/dgnc_neo.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 900e3ae..321783c 100644 --- a/drivers/staging/dgnc/dgnc_neo.c +++ b

[PATCH] Staging: dgnc: Merge lines and remove unused variable for immediate return

2015-07-27 Thread Shraddha Barke
(...); - return i; ) Signed-off-by: Shraddha Barke --- drivers/staging/dgnc/dgnc_neo.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 900e3ae..321783c 100644 --- a/drivers/staging/dgnc/dgnc_neo.c +++ b

[PATCH] Staging : rtl8188eu : os_dep : Compression of lines for immediate return

2015-07-27 Thread Shraddha Barke
(...); - return i; ) Signed-off-by: Shraddha Barke --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c index 38dba14

[PATCH] Drop unnecessary cast

2015-07-27 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 | - (T *) e ) Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/lib

[PATCH] Staging: lustre: Drop unnecessary cast

2015-07-27 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 | - (T *) e ) Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/lib

[PATCH] Staging:dgap :Compression of lines for immediate return

2015-07-27 Thread Shraddha Barke
; identifier f; @@ -ret = +return f(...); -return ret; Signed-off-by: Shraddha Barke --- drivers/staging/dgap/dgap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index b344e03..9112dd2 100644 --- a/drivers/staging

[PATCH] Staging:dgap :Compression of lines for immediate return

2015-07-27 Thread Shraddha Barke
; @@ - T i; ...when != i when strict ( return -C; | - i = + return f(...); - return i; ) Signed-off-by: Shraddha Barke --- drivers/staging/dgap/dgap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index

[PATCH] Drivers: isdn: Drop unnecessary continue

2015-07-28 Thread Shraddha Barke
The semantic patch used to make this change is : @@ @@ for (...;...;...) { ... if (...) { ... - continue; } } Signed-off-by: Shraddha Barke --- drivers/isdn/hardware/mISDN/hfcsusb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.c b/drivers

[PATCH] Drivers: isdn: Drop unnecessary continue

2015-07-28 Thread Shraddha Barke
The semantic patch used to make this change is : @@ @@ for (...;...;...) { ... if (...) { ... - continue; } } Signed-off-by: Shraddha Barke --- drivers/isdn/hardware/mISDN/hfcsusb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/isdn/hardware/mISDN

[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/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 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 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 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 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/

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

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

  1   2   >