Tapasweni Pathak
f0cffbfe8c
staging: vt6656: Merge three lines into one
...
This patch merges three lines into one, removing if branch
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-28 23:22:21 -04:00
Rajbinder Brar
3b9999ec18
Staging: vt6656: Merge two lines of code into one
...
This patch merges an assignment with an immediately following return of
the assigned variable. The following Coccinelle semantic patch was used
to make this transformation:
@@
expression ret;
identifier f;
@@
-ret=
+return
f(...);
-return ret;
A variable that became unused due to this transformation was also
removed.
Signed-off-by: Rajbinder Brar <brar.rajbinder@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-23 13:42:54 -07:00
Tapasweni Pathak
3e46587ef1
staging: vt6656: remove unnecessary else after return
...
This patch fixes checkpatch.pl warning in files of vt6656
WARNING: else is not generally useful after a break or return
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-23 13:41:15 -07:00
Mahati Chamarthy
eab4e78d08
Staging: vt6656: Merges two lines of code and also removes unused variable
...
This patch merges an assignment with an immediately following return of
the assigned variable. The following Coccinelle semantic patch was used
to make this transformation:
@@
expression ret;
identifier f;
@@
-ret =
+return
f(...);
-return ret;
A variable that became unused due to this transformation was also removed.
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-23 13:40:17 -07:00
Mahati Chamarthy
88c9cc0092
Staging: vt6656: Merges two lines of code and removes unused variable
...
This patch merges an assignment with an immediately following return of
the assigned variable.The following Coccinelle semantic patch was used to make this transformation:
@@
expression ret;
identifier f;
@@
-ret =
+return
f(...);
-return ret;
A variable that became unused due to this transformation was also removed.
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-23 13:40:17 -07:00
Rajbinder Brar
b377ed4cce
Staging: vt6656: Removing else after break statement to fix warning
...
This patch fixes the checkpatch.pl warning in baseband.c file
WARNING: else is not useful after a break or return
Signed-off-by: Rajbinder Brar <brar.rajbinder@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-19 17:01:22 -07:00
Malcolm Priestley
163090a24c
staging: vt6656: remove rate_control_algorithm pid
...
rate control algorithm pid was removed from wireless tree
The device defaults to algorithm 'minstrel_ht'
There has been no problems using this algorithm.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-08 14:01:17 -07:00
Ragnar B. Johannsson
76be25ba31
staging: vt6656: add blank line after declaration
...
Adds a blank line after declaration to comply with coding style.
Signed-off-by: Ragnar B. Johannsson <ragnar@igo.is>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-08-16 12:23:17 -07:00
Ragnar B. Johannsson
de657d59f2
staging: vt6656: fix incorrect indentation
...
Use tabs, not spaces.
Signed-off-by: Ragnar B. Johannsson <ragnar@igo.is>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-08-16 12:23:16 -07:00
Ragnar B. Johannsson
86140346ad
staging: vt6656: remove unnecessary braces
...
Removes unnecessary braces to comply with coding style.
Signed-off-by: Ragnar B. Johannsson <ragnar@igo.is>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-08-16 12:23:16 -07:00
Malcolm Priestley
7a3391764f
staging: vt6656: wcmd.h remove dead macros
...
AUTHENTICATE_TIMEOUT
ASSOCIATE_TIMEOUT
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 11:19:57 -07:00
Malcolm Priestley
4a36a96620
staging: vt6656: rf.h cleanup C_PWBT comments
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 11:19:57 -07:00
Malcolm Priestley
f777203a8c
staging: vt6656: power.h remove dead macros
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 11:19:57 -07:00
Malcolm Priestley
23690634a5
staging: vt6656: dpc remove unneeded headers
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 11:19:57 -07:00
Malcolm Priestley
52e0cdc546
staging: vt6656: dpc.h remove dead function prototypes
...
Removing
RXvWorkItem
RXvFreeRCB
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 11:19:57 -07:00
Malcolm Priestley
e96caf368c
staging: vt6656: rf.h clean up comments
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:44 -07:00
Malcolm Priestley
a8492a0baf
staging: vt6656: remove comments of old functions nolonger present.
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:44 -07:00
Malcolm Priestley
d78551b945
staging: vt6656: remove return from all void functions
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:44 -07:00
Malcolm Priestley
1beace3c8d
staging: vt6656: main_usb.c remove return from void functions
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
feab481076
staging: vt6656: change driver version to mac80211
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
ffc0e3733d
staging: vt6656: main_usb.c remove comments to functions nolonger present.
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
ef484423f5
staging: vt6656: rename device_alloc_bufs to vnt_alloc_bufs
...
changing device to vnt
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
1c2fd56bee
staging: vt6656: rename device_free_int_bufs to vnt_free_int_bufs
...
changing device to vnt
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
0dd6e68a54
staging: vt6656: rename device_free_rx_bufs to vnt_free_rx_bufs
...
changing vnt to device
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
afc7ef64a6
staging: vt6656: rename device_free_tx_bufs to vnt_free_tx_bufs
...
changing device to vnt
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
500e1fb322
staging: vt6656: rename device_init_registers to vnt_init_registers
...
changing device to vnt
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
7665cf21e8
staging: vt6656: rename device_set_options to vnt_set_options
...
changing device to vnt
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 09:03:43 -07:00
Malcolm Priestley
cbcc9a365a
staging: vt6656: use test_bit to check flags status
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:59 -07:00
Malcolm Priestley
fa4b5c74ea
staging: vt6656: Remove unused macro MP_TEST_FLAGS
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:59 -07:00
Malcolm Priestley
2ab3d46dd3
staging: vt6656: use clear_bit to remove device flag
...
Replacing MP_CLEAR_FLAG
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:59 -07:00
Malcolm Priestley
4c3b0d4572
staging: vt6656: use set_bit to set flags
...
Replacing MP_SET_FLAG
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:59 -07:00
Malcolm Priestley
2746321ef4
staging: vt6656: struct vnt_private merge flag and macros
...
merge u32 flag into unsigned long Flags
Replacing fMP_DISCONNECTED with DEVICE_FLAGS_DISCONNECTED
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:59 -07:00
Malcolm Priestley
23e7c47dfc
staging: vt6656: Remove unsed macro DEVICE_FLAGS_OPENED
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:58 -07:00
Malcolm Priestley
f370872f72
staging: vt6656: remove macro MP_IS_READY
...
Just test FLag and remove not.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:58 -07:00
Malcolm Priestley
b679ad2fdb
staging: vt6656: Remove flags fMP_POST_READS and fMP_POST_WRITES
...
MP_IS_READY(fMP_DISCONNECTED) is used to block thread in vnt_tx_context
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-24 15:09:58 -07:00
Malcolm Priestley
14fb6ce8de
staging: vt6656: struct vnt_tx_short_buf_head change base type of fifo_ctl to __le16
...
Base type is always little endian.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-22 16:19:36 -07:00
Malcolm Priestley
47e0889452
staging: vt6656: struct vnt_tx_fifo_head fifo_ctl change base type to __le16
...
Endian is always little add correction in vnt_tx_packet.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-22 16:19:35 -07:00
Malcolm Priestley
1e00b449fa
staging: vt6656: struct vnt_beacon_buffer replace byType with type
...
Removing camel case
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-22 16:19:35 -07:00
Malcolm Priestley
c8a3a4c0a2
staging: vt6656: vnt_tx_buffer replace byType with type
...
Removing camel case
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-22 16:19:35 -07:00
Malcolm Priestley
af90ab396c
staging: vt6656: struct vnt_beacon_buffer replace byPKTNO with pkt_no
...
removing camel case.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-22 16:19:35 -07:00
Malcolm Priestley
d0335a0363
staging: vt6656: struct vnt_tx_buffer replace byPKTNO with pkt_no
...
Replacing camel case
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-22 16:19:35 -07:00
Malcolm Priestley
f0ff3fde52
staging: vt6656: vnt_tx_fifo_head rename wFIFOCtl to fifo_ctl
...
Removing prefix and camel case.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-22 16:19:35 -07:00
Malcolm Priestley
b24351791c
staging: vt6656: usbpipe.c clean up USB_CTL_WAIT
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 14:54:32 -07:00
Malcolm Priestley
0acece05ba
staging: vt6656: usbpipe remove unneeded comments
...
We know what the endpoints are
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 14:54:31 -07:00
Malcolm Priestley
4060f53cf1
staging: vt6656: Remove ununsed macro URB_ASYNC_UNLINK
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 14:54:31 -07:00
Malcolm Priestley
664b044b91
staging: vt6656: remove static declaration vnt_tx_context_complete
...
Moving vnt_tx_context in visibility of vnt_tx_context_complete
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 14:54:31 -07:00
Malcolm Priestley
93eac3b1c1
staging: vt6656: Remove static declaration vnt_submit_rx_urb_complete
...
Moving vnt_submit_rx_urb in visibility of vnt_submit_rx_urb_complete
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 14:54:31 -07:00
Malcolm Priestley
eaa5679252
staging: vt6656: Remove static declaration vnt_start_interrupt_urb_complete
...
Moving vnt_start_interrupt_urb in visibility of vnt_start_interrupt_urb_complete
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 14:54:31 -07:00
Malcolm Priestley
cca48e3ce4
staging: vt6656: struct vnt_usb_send_context context into vnt_get_duration_le
...
Removing priv, frame_length and need_ack
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 12:16:30 -07:00
Malcolm Priestley
798f06011f
staging; vt6656: rxtx add current_rate into vnt_usb_send_context as tx_rate
...
Create u8 tx_rate and remove current_rate from function declarations
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-21 12:16:30 -07:00