diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-23 18:59:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-23 18:59:17 -0400 |
commit | 305b8766a9833491b388ac98d57ce38a8106a1e0 (patch) | |
tree | 0cff8a91ddfc24a5f52f0095218a9e331a991341 | |
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>
-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 = { | |||
1297 | */ | 1297 | */ |
1298 | static int __init line6_init(void) | 1298 | static int __init line6_init(void) |
1299 | { | 1299 | { |
1300 | int i, retval; | 1300 | int retval; |
1301 | 1301 | ||
1302 | printk(KERN_INFO "%s driver version %s\n", DRIVER_NAME, DRIVER_VERSION); | 1302 | printk(KERN_INFO "%s driver version %s\n", DRIVER_NAME, DRIVER_VERSION); |
1303 | 1303 | ||
1304 | for (i = LINE6_MAX_DEVICES; i--;) | ||
1305 | line6_devices[i] = NULL; | ||
1306 | |||
1307 | retval = usb_register(&line6_driver); | 1304 | retval = usb_register(&line6_driver); |
1308 | 1305 | ||
1309 | if (retval) { | 1306 | if (retval) { |