summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_driver.c
diff options
context:
space:
mode:
authorGujulan Elango, Hari Prasath (H.)2015-05-29 09:17:37 +0200
committerGreg Kroah-Hartman2015-05-31 03:26:27 +0200
commit7960386273f12bb46e3ffde2822a1eb254b66af8 (patch)
tree77c9c7c5cd473e3f568725823173a7cbe225b967 /drivers/staging/dgnc/dgnc_driver.c
parentstaging: dgnc: fix line length over 80 chars in dgnc_sysfs.c (diff)
downloadkernel-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.c9
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;