staging: dgap: Simplify get_altpin and get_useintr functions
authorMark Hounschell <markh@compro.net>
Fri, 23 May 2014 17:45:57 +0000 (13:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 19:40:52 +0000 (04:40 +0900)
commit0c24b2325598326cc7af3e93266ebe232c629fe4
tree82c7a88e35ddb4852f09a368257331b85df49629
parentee487100ce307baec964ca3708409fdb65c58f49
staging: dgap: Simplify get_altpin and get_useintr functions

Simplify dgap_config_get_useintr and dgap_config_get_altpin
changing the case statement to an if statement.

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