Skip to content

Commit 32af5ae

Browse files
daeseokyoungregkh
authored andcommitted
staging: dgap: remove unused waitqueues
dgap_dl_wait and kme_wait are not used in dgap. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 77343eb commit 32af5ae

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎drivers/staging/dgap/dgap.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ static uint dgap_numboards;
218218
static struct board_t *dgap_board[MAXBOARDS];
219219
static ulong dgap_poll_counter;
220220
static int dgap_driver_state = DRIVER_INITIALIZED;
221-
static wait_queue_head_t dgap_dl_wait;
222221
static int dgap_poll_tick = 20; /* Poll interval - 20 ms */
223222

224223
static struct class *dgap_class;
@@ -1200,8 +1199,6 @@ static void dgap_init_globals(void)
12001199
dgap_board[i] = NULL;
12011200

12021201
init_timer(&dgap_poll_timer);
1203-
1204-
init_waitqueue_head(&dgap_dl_wait);
12051202
}
12061203

12071204
/************************************************************************
@@ -4161,11 +4158,6 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
41614158

41624159
static int dgap_alloc_flipbuf(struct board_t *brd)
41634160
{
4164-
/*
4165-
* Initialize KME waitqueues...
4166-
*/
4167-
init_waitqueue_head(&brd->kme_wait);
4168-
41694161
/*
41704162
* allocate flip buffer for board.
41714163
*/

‎drivers/staging/dgap/dgap.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ struct board_t {
603603
/* by DPA */
604604
u16 dpastatus; /* The board "status", as defined */
605605
/* by DPA */
606-
wait_queue_head_t kme_wait; /* Needed for DPA support */
607606

608607
u32 conc_dl_status; /* Status of any pending conc */
609608
/* download */

0 commit comments

Comments
 (0)