aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-07-03 19:13:39 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 12:07:30 -0700
commitf420c6c8e88cb25811b9f5acc99d843ede153aaf (patch)
treef73f23aab61f8b152575e936085b504537c31cd8 /drivers/staging/dgnc
parent354579c2eed32c25ae8e65b94b058a9dad2df072 (diff)
downloadlinux-stericsson-f420c6c8e88cb25811b9f5acc99d843ede153aaf.tar.gz
staging: dgnc: remove redundant memset call
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>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_tty.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index c07ec74b8995..714a069831a8 100644
--- 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);