dgnc_poll_stop is a local variable in dgnc_driver.c, so it is useless to take dgnc_poll_lock before accessing to this variable. Signed-off-by: Salah Triki <salah.triki@xxxxxxx> --- drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index f03e8b3..a0cbc54 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -137,11 +137,8 @@ static struct pci_driver dgnc_driver = { static void dgnc_cleanup_module(void) { int i; - unsigned long flags; - spin_lock_irqsave(&dgnc_poll_lock, flags); dgnc_poll_stop = 1; - spin_unlock_irqrestore(&dgnc_poll_lock, flags); /* Turn off poller right away. */ del_timer_sync(&dgnc_poll_timer); -- 1.9.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel