From: Dan Carpenter Date: Mon, 9 Aug 2010 21:47:56 +0000 (+0000) Subject: qlcnic: clean up qlcnic_init_pci_info() X-Git-Tag: v2.6.36-rc1~43^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca315ac22c1a91fc8047254b250599890d8a7b30;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed