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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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(-)
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
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
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
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
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
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&
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/
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
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
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 +++---
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
;
// 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
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
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
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 - 100 of 151 matches
Mail list logo