[SCSI] bfa: fix the issue of not handling scsi_cmnd sg chaining case
authorJing Huang <huangj@brocade.com>
Fri, 19 Mar 2010 18:06:05 +0000 (11:06 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:24:17 +0000 (09:24 -0500)
commit2eba0d4c000777ce43012d7fda806b075f6cf877
treefdebad0f55465301bfcbd4f119311f63d358c353
parentb504293fe9dc42917a919044f2b672fb361329d0
[SCSI] bfa: fix the issue of not handling scsi_cmnd sg chaining case

Currently the driver doesn't take into consideraion of possible sg chaining
when it walks through the sg list. This is fixed by using the sg_next()
which automatically handles the chaining case. Obosolete code is removed
as a result of this change.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/bfa_cb_ioim_macros.h
drivers/scsi/bfa/bfa_ioim.c