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>
* Static vars.
*/
static uint dgnc_Major_Control_Registered = FALSE;
-static uint dgnc_driver_start = FALSE;
static struct class *dgnc_class;
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();