From: Robert Elliott Date: Fri, 23 Jan 2015 22:42:54 +0000 (-0600) Subject: hpsa: avoid unneccesary calls to resource freeing functions X-Git-Tag: fixes-v4.0-rc1~143^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8947fd10865db321205faa0e4123d165aff0781c;p=pandora-kernel.git hpsa: avoid unneccesary calls to resource freeing functions If hpsa_allocate_cmd_pool failed, we were calling two functions unnecessarily: hpsa_free_sg_chain_blocks(h); hpsa_free_cmd_pool(h); This didn't cause any problem, as those functions can tolerate being called when what they free hasn't been allocated (relevant pointers would be NULL) but it is potentially confusing. Reviewed-by: Scott Teel Signed-off-by: Robert Elliott Signed-off-by: Don Brace Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed