mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
staging: comedi: no need to zero out comedi_file_info_table[]
In the comedi core module, `comedi_file_info_table[]` is tentatively defined in the .bss section, so will already be zeroed out on initialization. Don't bother zeroing it out again in the module initialization function `comedi_init()`. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f08e0ac59a
commit
9162220068
1 changed files with 0 additions and 3 deletions
|
|
@ -2432,9 +2432,6 @@ static int __init comedi_init(void)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
memset(comedi_file_info_table, 0,
|
||||
sizeof(struct comedi_file_info *) * COMEDI_NUM_MINORS);
|
||||
|
||||
retval = register_chrdev_region(MKDEV(COMEDI_MAJOR, 0),
|
||||
COMEDI_NUM_MINORS, "comedi");
|
||||
if (retval)
|
||||
|
|
|
|||
Loading…
Reference in a new issue