H Hartley Sweeten
48b89ec6fa
staging: comedi: comedi_fc.h: remove cfc_handle_events()
...
This inline function is no longer used. Remove it.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:22 +08:00
H Hartley Sweeten
44aaad2d5f
staging: comedi: quatech_daqp_cs: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:22 +08:00
H Hartley Sweeten
11e7c09aee
staging: comedi: pcl818: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:22 +08:00
H Hartley Sweeten
a2ca8c8651
staging: comedi: pcl816: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:22 +08:00
H Hartley Sweeten
fa0e93d573
staging: comedi: pcl812: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:22 +08:00
H Hartley Sweeten
bd5ebdf072
staging: comedi: ni_pcidio: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:22 +08:00
H Hartley Sweeten
b9a69a19c9
staging: comedi: ni_mio_common: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
1c27ce6055
staging: comedi: ni_labpc_common: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
4a706e2e2d
staging: comedi: ni_at_a2150: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
9e1a0824cb
staging: comedi: ni_660x: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
b48e57e5b4
staging: comedi: gsc_hpdi: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
5d758b98fa
staging: comedi: dt3000: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
4f6f009b20
staging: comedi: dt282x: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
fe43b8f5de
staging: comedi: das1800: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
837a12643b
staging: comedi: das800: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
05664aa4d3
staging: comedi: das16m1: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
2588ab409c
staging: comedi: das16: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:21 +08:00
H Hartley Sweeten
62fc6407ea
staging: comedi: cb_pcidas64: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
H Hartley Sweeten
f923f78070
staging: comedi: cb_pcidas: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
H Hartley Sweeten
781f1f189e
staging: comedi: amplc_pci224: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
H Hartley Sweeten
c55e892b06
staging: comedi: adv_pci1710: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
H Hartley Sweeten
f5b5164d93
staging: comedi: adl_pci9118: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
H Hartley Sweeten
aa59d88f99
staging: comedi: adl_pci9111: use comedi_handle_events()
...
cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
Dilek Uzulmez
038862c4a3
staging: vt6655: Use ether_addr_copy function
...
This patch fixes the following checkpatch.pl warnings:
WARNING: "Prefer ether_addr_copy() over memcpy() if the Ethernet
addresses are __aligned(2)" in file iwctl.c
Pahole shows that the addresses are aligned
Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
Esra Altintas
84995ca471
staging: bcm: Removed unnecessary 'else' after 'return' statement in Qos.c
...
The following patch fixes the checkpatch.pl warning:
WARNING: else is not generally useful after a break or return
Signed-off-by: Esra Altintas <es.altintas@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
Tapasweni Pathak
d9798aa6c3
staging: comedi: drivers: Use DIV_ROUND_CLOSEST
...
The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
but is perhaps more readable.
The Coccinelle script used:
// <smpl>
@haskernel@
@@
@depends on haskernel@
expression x,__divisor;
@@
- (((x) + ((__divisor) / 2)) / (__divisor))
+ DIV_ROUND_CLOSEST(x,__divisor)
// </smpl>
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
Tapasweni Pathak
dea7503ac4
staging: octeon-usb: use DIV_ROUND_UP
...
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.
Coccinelle script used :
// <smpl>
@haskernel@
@@
@depends on haskernel@
expression n,d;
@@
(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:20 +08:00
Tapasweni Pathak
ffceca8c17
staging: iio: adc: use DIV_ROUND_UP
...
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.
Coccinelle script used :
// <smpl>
@haskernel@
@@
@depends on haskernel@
expression n,d;
@@
(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:19 +08:00
Tapasweni Pathak
97996da178
staging: comedi: drivers: use DIV_ROUND_UP
...
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.
Coccinelle script used :
// <smpl>
@haskernel@
@@
@depends on haskernel@
expression n,d;
@@
(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:19 +08:00
Tapasweni Pathak
583bea6c40
staging: comedi: use DIV_ROUND_UP
...
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.
Coccinelle script used :
// <smpl>
@haskernel@
@@
@depends on haskernel@
expression n,d;
@@
(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:19 +08:00
Esra Altintas
146ea83566
staging: speakup: Use time_after_eq to compare jiffies in speakup_keypc.c
...
The following patch fixes the checkpatch.pl warning:
WARNING: Comparing jiffies is almost always wrong; prefer time_after,
time_before and friends
Signed-off-by: Esra Altintas <es.altintas@gmail.com >
Reviewed-by: Josh Triplett <josh@joshtriplett.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:19 +08:00
Tapasweni Pathak
ad96f37f06
staging: wlan-ng: replace kmalloc and memset with kzalloc
...
Replace kmalloc and memset with a single call of kzalloc in
file of wlan-ng.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Reviewed-by: Josh Triplett <josh@joshtriplett.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:19 +08:00
Tapasweni Pathak
646da830fd
staging: rtl8712: Remove unnecessary cast for argument of kfree
...
This patch removes all occurrences of unnecessary cast on the
argument to kfree, all over in rtl8712.
There is no need of the cast on the argument to kfree.
Greped to find occurrences.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:19 +08:00
Dilek Uzulmez
f999ac00c7
staging: slicoss: Fix warning of prefer ether_addr_copy().
...
This patch fixes the following checkpatch.pl warnings:
WARNING: "Prefer ether_addr_copy() over memcpy() if the Ethernet
addresses are __aligned(2)" in file slicoss.c
Pahole shows that the addresses are aligned.
Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:19 +08:00
Kumari Radha
a7a4f87e3c
staging: vme: devices: Added a paragraph to describe Kconfig symbol
...
This patch adds module name information about config symbol fixing the following checkpatch.pl warning in Kconfig:
WARNING: please write a paragraph that describes the config symbol fully
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Veronika Kabatova
3830d03dee
staging: unisys: Union ULTRA_COMPONENT_VERSION not used, removed
...
Remove unused union ULTRA_COMPONENT_VERSION
Signed-off-by: Veronika Kabátová <veronicca114@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Veronika Kabatova
d8ad8b0cad
staging: unisys: Remove typedef and rename enum to lowercase
...
Remove typedef and rename enum to lowercase (control_vm_id)
Signed-off-by: Veronika Kabátová <veronicca114@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Sarah Khan
35b042a550
staging: gdm72xx: Removed unnecesarry out of memory usage
...
WARNING: Possible unnecessary out of memory usage
checkpatch.pl warning in gdm_wimax.c
Signed-off-by: Sarah Khan <sarahjmi07@gmail.com >
Acked-by: Daniel Baluta <daniel.baluta@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Ebru Akagunduz
48131a6bda
staging: gdm724x: Fix incorrect type in assignment
...
This patch fixes following sparse warnings:
drivers/staging/gdm724x/gdm_mux.c:389:32: warning: incorrect type in assignment (different base types)
drivers/staging/gdm724x/gdm_mux.c:389:32: expected unsigned int [unsigned] start_flag
drivers/staging/gdm724x/gdm_mux.c:389:32: got restricted __le32 [usertype] <noident
drivers/staging/gdm724x/gdm_mux.c:390:29: warning: incorrect type in assignment (different base types)
drivers/staging/gdm724x/gdm_mux.c:390:29: expected unsigned int [unsigned] seq_num
drivers/staging/gdm724x/gdm_mux.c:390:29: got restricted __le32 [usertype] <noident>
drivers/staging/gdm724x/gdm_mux.c:391:34: warning: incorrect type in assignment (different base types)
drivers/staging/gdm724x/gdm_mux.c:391:34: expected unsigned int [unsigned] payload_size
drivers/staging/gdm724x/gdm_mux.c:391:34: got restricted __le32 [usertype] <noident>
drivers/staging/gdm724x/gdm_mux.c:392:33: warning: incorrect type in assignment (different base types)
drivers/staging/gdm724x/gdm_mux.c:392:33: expected unsigned short [unsigned] packet_type
drivers/staging/gdm724x/gdm_mux.c:392:33: got restricted __le16 [usertype] <noident>
Sparse found above warnings, so this patch changes variable types of
structs. Because expected and got variable types are different.
Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com >
Reviewed-by: Octavian Purdila <octavian.purdila@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Dilek Uzulmez
3995213419
staging: gdm724x: Fix warning of prefer ether_addr_copy.
...
This patch fixes the following checkpatch.pl warnings:
WARNING: "Prefer ether_addr_copy() over memcpy() if the Ethernet
addresses are __aligned(2)" in file gdm_lte.c
Pahole shows that the addresses are aligned.
Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Dilek Uzulmez
feba47a74d
staging: dgnc: Remove space before tabs
...
This patch fixes the warning of "Please, no space before tab" produced
by checkpatch.pl. The modified file: dgnc_tty.c
Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Roberta Dobrescu
1f26adc94a
staging: dgnc: Remove non-standard APR/RAPR printing macros
...
This patch removes non-standard macros used by dgnc driver for printing error
or debugging messages. These are replaced by dev_err/dev_dbg (when possible)
or pr_err. There were cases where the message is completely removed since is
not adding any useful information.
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com >
Reviewed-by: Josh Triplett <josh@joshtriplett.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Heena Sirwani
ca5dd0b83d
Staging: dgnc: Compress two lines of code into one.
...
The following patch merges two lines of code into one using coccinelle
and removes unused variables. The semantic patch used is as follows:
@@
expression ret;
identifier f;
@@
-ret =
+return
f(...);
-return ret;
Signed-off-by: Heena Sirwani <heenasirwani@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:18 +08:00
Melike Yurtoglu
2ff6179f16
staging: vt6656: remove unnecessary 'out of memory' message
...
This patch fixes "Possible unnecessary 'out of memory' message"
checkpatch.pl warning in main_usb.c
Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:17 +08:00
Tapasweni Pathak
8e4ec4fe04
staging: android: ion: Replace "the the " with "the"
...
This patch replace "the the " with "the".
The replacement couldn't be automated because sometimes
the first "the" was meant to be another word.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Acked-by: Daniel Baluta <daniel.baluta@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:17 +08:00
Melike Yurtoglu
fb282bcd9c
staging: wlan-ng: remove unnecessary 'out of memory' message
...
This patch fixes "Possible unnecessary 'out of memory' message"
checkpatch.pl warning in hfa384x_usb.c
Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:17 +08:00
Veronika Kabatova
7489df3695
staging: wlan-ng: add blank lines after declarations
...
Fixes "missing blank line after declaration" warnings by checkpatch.pl
Signed-off-by: Veronika Kabátová <veronicca114@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:17 +08:00
Tapasweni Pathak
ef96fdddcd
staging: lustre: lustre: llite: use DIV_ROUND_UP
...
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.
Coccinelle script used :
// <smpl>
@haskernel@
@@
@depends on haskernel@
expression n,d;
@@
(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:17 +08:00
Tina Johnson
a15dbf99ab
Staging: lustre: Fix checkpatch error: Unnecessary comparison
...
Removed unnecessary comparison against NULL to remove following
checkpatch error:
ERROR: spaces required around that '!='
Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com >
Reviewed-by: Josh Triplett <josh@joshtriplett.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:17 +08:00
Kumari Radha
aa21894b3c
staging: ft1000: ft1000-pcmcia: Replace printks with netdev_<level> and dev_<level>
...
This patch replaces printk(KERN_INFO ... with dev_info and printk(KERN_ERR ... with netdev_err fixing following checkpatch.pl warnings in ft1000_hw.c:
WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
Signed-off-by: Kumari Radha <kumari.radha3@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-10-20 10:29:17 +08:00