diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-07-09 16:29:58 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 12:02:16 -0700 |
commit | 4c0e01496b0ee28b926ff8256f4406525b7aed01 (patch) | |
tree | 03c22b93d270e40b6e918943039deafcbd2c6fae /drivers/staging/dgap | |
parent | 039879e8c11a2fa62def79df4bcb39b701d6aefe (diff) |
staging: dgap: remove redundant NULL check in dgap_tty_init()
The brd is already checked by earlier function in dgap_init_one().
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r-- | drivers/staging/dgap/dgap.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 522a4a86e27c..cc21dd228ba8 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -1363,9 +1363,6 @@ static int dgap_tty_init(struct board_t *brd) struct cm_t __iomem *cm; int ret; - if (!brd) - return -EIO; - /* * Initialize board structure elements. */ |