[SCSI] bnx2fc: use list_entry instead of explicit cast
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Thu, 7 Jun 2012 09:19:36 +0000 (02:19 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:24 +0000 (08:58 +0100)
commitd71fb3bdeee80565eda4d3453ff6d9f6f8176745
tree2b2e1c6a92a201348d3d0862271f864d60841ef7
parent5c17ae217ad13463f821c3bab774335777da9c33
[SCSI] bnx2fc: use list_entry instead of explicit cast

Use list_for_each_entry_safe() instead of explicit cast to avoid relying on
struct layout

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
drivers/scsi/bnx2fc/bnx2fc_io.c
drivers/scsi/bnx2fc/bnx2fc_tgt.c