From: Bhanu Prakash Gollapudi Date: Fri, 5 Aug 2011 00:38:47 +0000 (-0700) Subject: [SCSI] bnx2fc: code cleanup in bnx2fc_offload_session X-Git-Tag: v3.2-rc1~125^2~185 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fb8fd0dbc0f7e3bc3ea594223e5d4b50c2092d9;p=pandora-kernel.git [SCSI] bnx2fc: code cleanup in bnx2fc_offload_session - Free session resources before rport logoff - Do not free session resources in bnx2fc_alloc_session_resc() as it is handled in caller's error handling path. - Do not call bnx2fc_free_session_resc() if bnx2fc_init_tgt() fails as cq_lock is not yet initialized. Signed-off-by: Bhanu Prakash Gollapudi Signed-off-by: James Bottomley --- Reading git-diff-tree failed