summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorLidza Louina <lidza.louina@gmail.com>2013-08-22 18:54:15 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-22 19:35:26 (GMT)
commit8287ac00ddfece19834d40a424406eecc692b407 (patch)
tree5f259d1e32da25a5e320aeeb936adde8a099b24a /drivers/staging
parentb3cc872c1b51b9c4166264a3f5e614b9f2d3b263 (diff)
downloadlinux-fsl-qoriq-8287ac00ddfece19834d40a424406eecc692b407.tar.xz
staging: dgnc: driver.c: removes dgnc_mbuf function
This patch removes the dgnc_mbuf function. This function was causing the errors: drivers/staging/dgnc/dgnc_driver.c: In function 'dgnc_mbuf.constprop.0': drivers/staging/dgnc/dgnc_driver.c:945:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=] drivers/staging/dgnc/dgnc_tty.c: In function 'dgnc_sniff_nowait_nolock': drivers/staging/dgnc/dgnc_tty.c:614:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] This patch removes it so the kernel won't be making noise when its device is found on the system. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Lidza Louina <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index 8032368..9fef18a 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -81,8 +81,6 @@ static int dgnc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
static void dgnc_remove_one(struct pci_dev *dev);
static int dgnc_probe1(struct pci_dev *pdev, int card_type);
static void dgnc_do_remap(struct board_t *brd);
-static void dgnc_mbuf(struct board_t *brd, const char *fmt, ...);
-
/* Driver load/unload functions */
int dgnc_init_module(void);
@@ -709,10 +707,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
/* init our poll helper tasklet */
tasklet_init(&brd->helper_tasklet, brd->bd_ops->tasklet, (unsigned long) brd);
- /* Log the information about the board */
- dgnc_mbuf(brd, DRVSTR": board %d: %s (rev %d), irq %d\n",
- dgnc_NumBoards, brd->name, brd->rev, brd->irq);
-
DPR_INIT(("dgnc_scan(%d) - printing out the msgbuf\n", i));
DGNC_LOCK(dgnc_global_lock, flags);
brd->msgbuf = NULL;
@@ -911,40 +905,6 @@ void *dgnc_driver_kzmalloc(size_t size, int priority)
/*
- * dgnc_mbuf()
- *
- * Used to print to the message buffer during board init.
- */
-static void dgnc_mbuf(struct board_t *brd, const char *fmt, ...) {
- va_list ap;
- char buf[1024];
- int i;
- unsigned long flags;
-
- DGNC_LOCK(dgnc_global_lock, flags);
-
- /* Format buf using fmt and arguments contained in ap. */
- va_start(ap, fmt);
- i = vsprintf(buf, fmt, ap);
- va_end(ap);
-
- DPR((buf));
-
- if (!brd || !brd->msgbuf) {
- printk(buf);
- DGNC_UNLOCK(dgnc_global_lock, flags);
- return;
- }
-
- memcpy(brd->msgbuf, buf, strlen(buf));
- brd->msgbuf += strlen(buf);
- *brd->msgbuf = '\0';
-
- DGNC_UNLOCK(dgnc_global_lock, flags);
-}
-
-
-/*
* dgnc_ms_sleep()
*
* Put the driver to sleep for x ms's