staging: dgnc: remove redundant null check in
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 6 Jul 2016 06:16:44 +0000 (15:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:13:25 +0000 (19:13 +0200)
commit14ad5165117713d521969eff9a25a7692531bb22
tree99a1ad3a584ba1883ba7c5589ad787db422c21f7
parentfb7d94a7582e494a71c3a0b311910f7b179c01d9
staging: dgnc: remove redundant null check in

the "brd" was already checked for NULL before calling dgnc_do_remap().

the dgnc_do_remap() function was called only
from the dgnc_found_board() and the DGNC_BOARD_MAGIC value
was assigned to "brd->magic" in dgcn_found_board(). So it doesn't
need to check about magic value.

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