staging: dgap: remove unnecessary if statement for checking NULL
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 8 Oct 2014 11:12:48 +0000 (20:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:26 +0000 (10:29 +0800)
commit9f2b744475b141a2d8e1bf047ecd06a054f300e3
treee358983f803da0cbe04598d2bd4b116d24f8a44d
parent748d9dd1b1b6cd88a0dbc0b3dd49fb51dcb1c9de
staging: dgap: remove unnecessary if statement for checking NULL

dgap_release_remap() function is only called after the memory
has been remapped so if statement for checking NULL doesn't
need.

And also release_mem_region() calls are moved after iounmap() calls.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c