From: Ian Abbott Date: Thu, 4 Apr 2013 13:58:43 +0000 (+0100) Subject: staging: comedi: no need to zero out comedi_file_info_table[] X-Git-Tag: v3.10-rc1~192^2~305 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9162220068c45ce7a564db07ccb45f7462a39eba;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 6bcbb52..c8a704b 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -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)