staging: dgap: remove unneeded status variables
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 8 Mar 2014 21:01:33 +0000 (01:01 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 06:44:35 +0000 (22:44 -0800)
commitaf07daa0af2099d7144bb55cbb9d4758d8578a23
tree219fb365090a7062e5d1d3b750bfede1ca73a454
parent61a0bc0f1fd235cb0af8413432beb5fed8101ad1
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 <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c