mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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>
This commit is contained in:
parent
354579c2ee
commit
f420c6c8e8
1 changed files with 0 additions and 3 deletions
|
@ -200,9 +200,6 @@ int dgnc_tty_register(struct dgnc_board *brd)
|
||||||
|
|
||||||
DPR_INIT(("tty_register start\n"));
|
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;
|
brd->SerialDriver.magic = TTY_DRIVER_MAGIC;
|
||||||
|
|
||||||
snprintf(brd->SerialName, MAXTTYNAMELEN, "tty_dgnc_%d_", brd->boardnum);
|
snprintf(brd->SerialName, MAXTTYNAMELEN, "tty_dgnc_%d_", brd->boardnum);
|
||||||
|
|
Loading…
Reference in a new issue