Skip to content

Commit

Permalink
Staging: line6: remove unneeded initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Apr 23, 2012
1 parent 542038f commit 305b876
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 305b876

Please sign in to comment.