e1000e: clean up the local variable
authorJean Sacren <sakiwit@gmail.com>
Sat, 19 Sep 2015 11:08:42 +0000 (05:08 -0600)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 13 Dec 2015 07:10:46 +0000 (23:10 -0800)
The local variable 'ret' doesn't serve much purpose so we might as well
clean it up.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c

index 0a854a47d31a77ef0723231dd75e3aceddc5d6b0..0003bf61b211b4958686e72d0ae8770c19bcea2a 100644 (file)
@@ -7504,14 +7504,11 @@ static struct pci_driver e1000_driver = {
  **/
 static int __init e1000_init_module(void)
 {
-       int ret;
-
        pr_info("Intel(R) PRO/1000 Network Driver - %s\n",
                e1000e_driver_version);
        pr_info("Copyright(c) 1999 - 2015 Intel Corporation.\n");
-       ret = pci_register_driver(&e1000_driver);
 
-       return ret;
+       return pci_register_driver(&e1000_driver);
 }
 module_init(e1000_init_module);