staging: dgap: Simplify and cleanup dgap_init_module function
authorMark Hounschell <markh@compro.net>
Thu, 6 Mar 2014 20:25:19 +0000 (15:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Mar 2014 22:16:40 +0000 (14:16 -0800)
commit002de0ba878d0892d0bc722210cc924ee4349cea
treed477462c72b12fca3b546247d0db651f6d290834
parent434b679bdb4d10615701aa152e800123f47274fe
staging: dgap: Simplify and cleanup dgap_init_module function

This patch simplifies and cleans up the dgap_init_module function. It also fixes
a possible double free condition as a result pci_unregister_driver possibly
being called twice.

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c