From af07daa0af2099d7144bb55cbb9d4758d8578a23 Mon Sep 17 00:00:00 2001 From: Alexey Khoroshilov Date: Sun, 9 Mar 2014 01:01:33 +0400 Subject: [PATCH] staging: dgap: remove unneeded status variables dgap_driver_start and dgap_Major_Control_Registered are used to keep status of initialization of the driver as a whole and its "Major Control". But the code that checks them is executed once on module init/unload. That makes no sense in these variables as far as their values are predictable at any time. Also "dgap_downld" device was removed, while device_destroy(MKDEV(DIGI_DGAP_MAJOR, 1)) is still in dgap_cleanup_module(). The patch removes it by the way. Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed