linux_dsm_epyc7002/drivers/net/qlcnic
Dan Carpenter ca315ac22c qlcnic: clean up qlcnic_init_pci_info()
In the original code we allocated memory conditionally and freed it in
the error handling unconditionally.  It turns out that this function is
only called during initialization and "adapter->npars" and
"adapter->eswitch" are always NULL at the start of the function.  I
removed those checks.

Also since I was cleaning things, I changed the error handling for
qlcnic_get_pci_info() and pulled everything in an indent level.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-10 01:34:36 -07:00
..
Makefile qlcnic: Qlogic ethernet driver for CNA devices 2010-01-16 01:17:15 -08:00
qlcnic_ctx.c qlcnic: restore NPAR config data after recovery 2010-07-14 13:54:17 -07:00
qlcnic_ethtool.c qlcnic: fix loopback test 2010-07-25 16:32:40 -07:00
qlcnic_hdr.h qlcnic: Remove obsolete code 2010-06-29 15:12:36 -07:00
qlcnic_hw.c qlcnic: release device resources during interface down 2010-06-23 13:16:30 -07:00
qlcnic_init.c qlcnic: Remove obsolete code 2010-06-29 15:12:36 -07:00
qlcnic_main.c qlcnic: clean up qlcnic_init_pci_info() 2010-08-10 01:34:36 -07:00
qlcnic.h qlcnic: fix loopback test 2010-07-25 16:32:40 -07:00