staging: dgap: remove redundant NULL check in dgap_tty_init()
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 9 Jul 2014 07:29:58 +0000 (16:29 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 19:02:16 +0000 (12:02 -0700)
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>
drivers/staging/dgap/dgap.c

index 522a4a86e27c82aed47c7c6fc87dea29d0936714..cc21dd228ba80473a2bc40659fb1ad4d4aae5398 100644 (file)
@@ -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.
         */