staging: dgap: remove bogus null test in dgap_tty_init()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 2 Jun 2014 05:06:53 +0000 (14:06 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:21:47 +0000 (15:21 -0700)
commite74c2ddcbbc3ecfc55c246b3da3c5320fe46d8e3
tree60c0da166f9a85fbfcd4fefddaaa52bd2cfc39a8
parentf86c55c9654da49d0bd401634cf679f410dfeb8d
staging: dgap: remove bogus null test in dgap_tty_init()

- The channels array were set to NULL in dgap_found_board().
- Removes redundant null check for channels array in for loop,
if one of the channel cannot be allocated, dgap_tty_init() just returns
an error.

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