From: Daeseok Youn Date: Thu, 3 Jul 2014 10:13:39 +0000 (+0900) Subject: staging: dgnc: remove redundant memset call X-Git-Tag: v3.17-rc1~123^2~1117 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f420c6c8e88cb25811b9f5acc99d843ede153aaf;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);