OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
039879e
)
staging: dgap: remove redundant NULL check in dgap_tty_init()
author
Daeseok Youn
<daeseok.youn@gmail.com>
Wed, 9 Jul 2014 07:29:58 +0000
(16:29 +0900)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/dgap/dgap.c
b/drivers/staging/dgap/dgap.c
index
522a4a8
..
cc21dd2
100644
(file)
--- 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.
*/