From: Daeseok Youn <daeseok.youn@gmail.com>
Date: Wed, 9 Jul 2014 07:29:58 +0000 (+0900)
Subject: staging: dgap: remove redundant NULL check in dgap_tty_init()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c0e01496b0ee28b926ff8256f4406525b7aed01;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

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>
---

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.
 	 */