diff options
author | Gujulan Elango, Hari Prasath (H.) | 2015-05-29 09:17:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-05-31 03:26:27 +0200 |
commit | 7960386273f12bb46e3ffde2822a1eb254b66af8 (patch) | |
tree | 77c9c7c5cd473e3f568725823173a7cbe225b967 /drivers/staging/dgnc/dgnc_driver.c | |
parent | staging: dgnc: fix line length over 80 chars in dgnc_sysfs.c (diff) | |
download | kernel-qcow2-linux-7960386273f12bb46e3ffde2822a1eb254b66af8.tar.gz kernel-qcow2-linux-7960386273f12bb46e3ffde2822a1eb254b66af8.tar.xz kernel-qcow2-linux-7960386273f12bb46e3ffde2822a1eb254b66af8.zip |
staging: dgnc: delete all references to 'flipbuf'
This patch deletes all references to 'flipbuf'.Memory is allocated and
freed but never used anywhere in the driver.Also deleted an ununsed
Macro defined in the header file.
Signed-off-by: Gujulan Elango Hari Prasath <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_driver.c')
-rw-r--r-- | drivers/staging/dgnc/dgnc_driver.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 805dc617e3a7..7546aff65002 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -355,7 +355,6 @@ static void dgnc_cleanup_board(struct dgnc_board *brd) } } - kfree(brd->flipbuf); dgnc_Board[brd->boardnum] = NULL; @@ -581,14 +580,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id) brd->msgbuf_head = NULL; spin_unlock_irqrestore(&dgnc_global_lock, flags); - /* - * allocate flip buffer for board. - * - * Okay to malloc with GFP_KERNEL, we are not at interrupt - * context, and there are no locks held. - */ - brd->flipbuf = kzalloc(MYFLIPLEN, GFP_KERNEL); - wake_up_interruptible(&brd->state_wait); return 0; |