Skip to content

Commit

Permalink
[SCSI] ibmvscsi: remove unnecessary map_sg check
Browse files Browse the repository at this point in the history
No need to check use_sg since sg_tablesize is set appropriately in the
scsi host template.

Brian King's patch (2a73093) did this
cleanup but the data buffer accessors patch (written before the patch
and merged after it) restored the check.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Jul 31, 2007
1 parent 7936a89 commit ed3a363
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/scsi/ibmvscsi/ibmvscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,6 @@ static int map_sg_data(struct scsi_cmnd *cmd,
return 1;
else if (sg_mapped < 0)
return 0;
else if (sg_mapped > SG_ALL) {
printk(KERN_ERR
"ibmvscsi: More than %d mapped sg entries, got %d\n",
SG_ALL, sg_mapped);
return 0;
}

set_srp_direction(cmd, srp_cmd, sg_mapped);

Expand Down

0 comments on commit ed3a363

Please sign in to comment.