diff options
author | Dan Carpenter <error27@gmail.com> | 2010-08-09 21:47:56 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-10 08:34:36 (GMT) |
commit | ca315ac22c1a91fc8047254b250599890d8a7b30 (patch) | |
tree | 814076c69d1779aa3fe04fd2b0c3c9a2e09aa054 /net/sched/sch_sfq.c | |
parent | 00c7d9202a19091d1873954ba158375d2efd5a64 (diff) | |
download | linux-fsl-qoriq-ca315ac22c1a91fc8047254b250599890d8a7b30.tar.xz |
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>
Diffstat (limited to 'net/sched/sch_sfq.c')
0 files changed, 0 insertions, 0 deletions