mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
[PATCH] initialisation cleanup for ULI526x-net-driver
removes the unneeded local variable rc replace pci_module_init() with pci_register_driver() two coding style issues on switch Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
a8bed49ecf
commit
e1c3e50140
@ -1702,7 +1702,6 @@ MODULE_PARM_DESC(mode, "ULi M5261/M5263: Bit 0: 10/100Mbps, bit 2: duplex, bit 8
|
||||
|
||||
static int __init uli526x_init_module(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
printk(version);
|
||||
printed_version = 1;
|
||||
@ -1721,15 +1720,12 @@ static int __init uli526x_init_module(void)
|
||||
case ULI526X_100MFD:
|
||||
uli526x_media_mode = mode;
|
||||
break;
|
||||
default:uli526x_media_mode = ULI526X_AUTO;
|
||||
default:
|
||||
uli526x_media_mode = ULI526X_AUTO;
|
||||
break;
|
||||
}
|
||||
|
||||
rc = pci_module_init(&uli526x_driver);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
|
||||
return 0;
|
||||
return pci_register_driver(&uli526x_driver);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user