diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-23 15:59:17 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-23 15:59:17 -0700 |
commit | 305b8766a9833491b388ac98d57ce38a8106a1e0 (patch) | |
tree | 0cff8a91ddfc24a5f52f0095218a9e331a991341 /drivers/staging/line6/driver.c | |
parent | 542038f4df5a9d5d806a4af8725d2d21c4423a15 (diff) |
Staging: line6: remove unneeded initialization
Static variables are initialized to NULL, no need to do it again in the
module_init function.
CC: Markus Grabner <grabner@icg.tugraz.at>
CC: Stefan Hajnoczi <stefanha@gmail.com>
CC: Julia Lawall <julia@diku.dk>
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/line6/driver.c')
-rw-r--r-- | drivers/staging/line6/driver.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/line6/driver.c b/drivers/staging/line6/driver.c index e8023afd3656..312905afe5e6 100644 --- a/drivers/staging/line6/driver.c +++ b/drivers/staging/line6/driver.c @@ -1297,13 +1297,10 @@ static struct usb_driver line6_driver = { */ static int __init line6_init(void) { - int i, retval; + int retval; printk(KERN_INFO "%s driver version %s\n", DRIVER_NAME, DRIVER_VERSION); - for (i = LINE6_MAX_DEVICES; i--;) - line6_devices[i] = NULL; - retval = usb_register(&line6_driver); if (retval) { |