mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
scst: Make scst_alloc_add_tgt_dev() somewhat easier to read (merge r7848 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+5
-4
@@ -5277,10 +5277,11 @@ static int scst_alloc_add_tgt_dev(struct scst_session *sess,
|
||||
scst_sgv_pool_use_norm(tgt_dev);
|
||||
|
||||
if (dev->scsi_dev != NULL) {
|
||||
ini_sg = dev->scsi_dev->host->sg_tablesize;
|
||||
ini_unchecked_isa_dma = dev->scsi_dev->host->unchecked_isa_dma;
|
||||
ini_use_clustering = (dev->scsi_dev->host->use_clustering ==
|
||||
ENABLE_CLUSTERING);
|
||||
struct Scsi_Host *shost = dev->scsi_dev->host;
|
||||
|
||||
ini_sg = shost->sg_tablesize;
|
||||
ini_unchecked_isa_dma = shost->unchecked_isa_dma;
|
||||
ini_use_clustering = shost->use_clustering == ENABLE_CLUSTERING;
|
||||
} else {
|
||||
ini_sg = (1 << 15) /* infinite */;
|
||||
ini_unchecked_isa_dma = 0;
|
||||
|
||||
Reference in New Issue
Block a user