summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_driver.c
diff options
context:
space:
mode:
authorKonrad Zapalowicz2014-08-16 16:58:07 +0200
committerGreg Kroah-Hartman2014-08-17 18:52:25 +0200
commit0b3a07ede37d0c1a0985032c9f2044d71813282a (patch)
tree9361eb4f510bb80b64258e7b34bc14b87dd8f473 /drivers/staging/dgnc/dgnc_driver.c
parentstaging: dgnc: Remove driver-wide polling counter variable (diff)
downloadkernel-qcow2-linux-0b3a07ede37d0c1a0985032c9f2044d71813282a.tar.gz
kernel-qcow2-linux-0b3a07ede37d0c1a0985032c9f2044d71813282a.tar.xz
kernel-qcow2-linux-0b3a07ede37d0c1a0985032c9f2044d71813282a.zip
staging: dgnc: Remove not needed dgnc_driver_start variable
The dgnc_driver_start variable purpose was to indicate if the driver 'start' routine has been called. Now, because the 'start' routine can only be called once this variable is not needed thus this commit removes it. Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.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.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index 223075a57968..726b5ddb8107 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -97,7 +97,6 @@ int dgnc_poll_tick = 20; /* Poll interval - 20 ms */
* Static vars.
*/
static uint dgnc_Major_Control_Registered = FALSE;
-static uint dgnc_driver_start = FALSE;
static struct class *dgnc_class;
@@ -270,10 +269,6 @@ static int dgnc_start(void)
int rc = 0;
unsigned long flags;
- if (dgnc_driver_start == TRUE)
- return rc;
- dgnc_driver_start = TRUE;
-
/* make sure that the globals are init'd before we do anything else */
dgnc_init_globals();