Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b3a07ed authored by Konrad Zapalowicz's avatar Konrad Zapalowicz Committed by Greg Kroah-Hartman
Browse files

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: default avatarKonrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3599abaf
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -97,7 +97,6 @@ int dgnc_poll_tick = 20; /* Poll interval - 20 ms */
 * Static vars.
 * Static vars.
 */
 */
static uint		dgnc_Major_Control_Registered = FALSE;
static uint		dgnc_Major_Control_Registered = FALSE;
static uint		dgnc_driver_start = FALSE;


static struct class *dgnc_class;
static struct class *dgnc_class;


@@ -270,10 +269,6 @@ static int dgnc_start(void)
	int rc = 0;
	int rc = 0;
	unsigned long flags;
	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 */
	/* make sure that the globals are init'd before we do anything else */
	dgnc_init_globals();
	dgnc_init_globals();