staging: dgnc: dgnc_driver: remove all occurences of trcbuf_size
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Sat, 25 Oct 2014 21:40:15 +0000 (23:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 08:12:39 +0000 (16:12 +0800)
This patch removes the variable trcbuf_size given there is no real
use for it anymore. All of the debug variables in this driver is
basically dead code.

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c
drivers/staging/dgnc/dgnc_driver.h

index 0eafd1f..62843d6 100644 (file)
@@ -57,7 +57,6 @@ MODULE_SUPPORTED_DEVICE("dgnc");
  */
 PARM_INT(debug,                0x00,           0644,   "Driver debugging level");
 PARM_INT(rawreadok,    1,              0644,   "Bypass flip buffers on input");
-PARM_INT(trcbuf_size,  0x100000,       0644,   "Debugging trace buffer size.");
 
 /**************************************************************************
  *
@@ -743,7 +742,6 @@ static void dgnc_init_globals(void)
        int i = 0;
 
        dgnc_rawreadok          = rawreadok;
-       dgnc_trcbuf_size        = trcbuf_size;
        dgnc_debug              = debug;
        dgnc_NumBoards          = 0;
 
index 695c3c6..f1b1564 100644 (file)
@@ -431,7 +431,6 @@ extern uint         dgnc_Major;             /* Our driver/mgmt major        */
 extern int             dgnc_debug;             /* Debug variable               */
 extern int             dgnc_rawreadok;         /* Set if user wants rawreads   */
 extern int             dgnc_poll_tick;         /* Poll interval - 20 ms        */
-extern int             dgnc_trcbuf_size;       /* Size of the ringbuffer       */
 extern spinlock_t      dgnc_global_lock;       /* Driver global spinlock       */
 extern uint            dgnc_NumBoards;         /* Total number of boards       */
 extern struct dgnc_board       *dgnc_Board[MAXBOARDS]; /* Array of board structs       */