projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
354579c
)
staging: dgnc: remove redundant memset call
author
Daeseok Youn
<daeseok.youn@gmail.com>
Thu, 3 Jul 2014 10:13:39 +0000
(19:13 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 19:07:30 +0000
(12:07 -0700)
The brd is allocated by kzalloc() in dgnc_found_board()
so do not need to set 0 to member variable.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgnc/dgnc_tty.c
b/drivers/staging/dgnc/dgnc_tty.c
index c07ec74b8995c10ece995bc792abd4a39ae29d2b..714a069831a8024ec5d4ddd108a3b735019498d2 100644
(file)
--- a/
drivers/staging/dgnc/dgnc_tty.c
+++ b/
drivers/staging/dgnc/dgnc_tty.c
@@
-200,9
+200,6
@@
int dgnc_tty_register(struct dgnc_board *brd)
DPR_INIT(("tty_register start\n"));
- memset(&brd->SerialDriver, 0, sizeof(brd->SerialDriver));
- memset(&brd->PrintDriver, 0, sizeof(brd->PrintDriver));
-
brd->SerialDriver.magic = TTY_DRIVER_MAGIC;
snprintf(brd->SerialName, MAXTTYNAMELEN, "tty_dgnc_%d_", brd->boardnum);