File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -619,7 +619,7 @@ static int __init ie31200_init(void)
619
619
620
620
pci_rc = pci_register_driver (& ie31200_driver );
621
621
if (pci_rc < 0 )
622
- goto fail0 ;
622
+ return pci_rc ;
623
623
624
624
if (!mci_pdev ) {
625
625
ie31200_registered = 0 ;
@@ -630,24 +630,26 @@ static int __init ie31200_init(void)
630
630
if (mci_pdev )
631
631
break ;
632
632
}
633
+
633
634
if (!mci_pdev ) {
634
635
edac_dbg (0 , "ie31200 pci_get_device fail\n" );
635
636
pci_rc = - ENODEV ;
636
- goto fail1 ;
637
+ goto fail0 ;
637
638
}
639
+
638
640
pci_rc = ie31200_init_one (mci_pdev , & ie31200_pci_tbl [i ]);
639
641
if (pci_rc < 0 ) {
640
642
edac_dbg (0 , "ie31200 init fail\n" );
641
643
pci_rc = - ENODEV ;
642
644
goto fail1 ;
643
645
}
644
646
}
645
- return 0 ;
646
647
648
+ return 0 ;
647
649
fail1 :
648
- pci_unregister_driver (& ie31200_driver );
649
- fail0 :
650
650
pci_dev_put (mci_pdev );
651
+ fail0 :
652
+ pci_unregister_driver (& ie31200_driver );
651
653
652
654
return pci_rc ;
653
655
}
You can’t perform that action at this time.
0 commit comments