mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
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>
This commit is contained in:
parent
542038f4df
commit
305b8766a9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user