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
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user