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>
This commit is contained in:
parent
039879e8c1
commit
4c0e01496b
@ -1363,9 +1363,6 @@ static int dgap_tty_init(struct board_t *brd)
|
|||||||
struct cm_t __iomem *cm;
|
struct cm_t __iomem *cm;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!brd)
|
|
||||||
return -EIO;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize board structure elements.
|
* Initialize board structure elements.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user