From: Daeseok Youn Date: Wed, 9 Jul 2014 07:29:58 +0000 (+0900) Subject: staging: dgap: remove redundant NULL check in dgap_tty_init() X-Git-Tag: v3.17-rc1~123^2~1121 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4c0e01496b0ee28b926ff8256f4406525b7aed01;p=karo-tx-linux.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 Signed-off-by: Greg Kroah-Hartman --- 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. */