]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[hermon] Stop firmware only once on shutdown
authorMichael Brown <mcb30@ipxe.org>
Thu, 7 Apr 2011 23:50:49 +0000 (00:50 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 7 Apr 2011 23:50:49 +0000 (00:50 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c

index 561e65ebc06cbb342c1f264e154bda09d9d5e113..7a487c91c0ced3097f617cac83fc43f174fd6350 100644 (file)
@@ -3739,7 +3739,6 @@ static void hermon_remove ( struct pci_device *pci ) {
        hermon_cmd_close_hca ( hermon );
        hermon_free_icm ( hermon );
        hermon_stop_firmware ( hermon );
-       hermon_stop_firmware ( hermon );
        for ( i = ( hermon->cap.num_ports - 1 ) ; i >= 0 ; i-- ) {
                netdev_nullify ( hermon->port[i].netdev );
                netdev_put ( hermon->port[i].netdev );