[SCSI] use scmd_id(), scmd_channel() throughout code
Wrap a highly common idiom. Makes the code easier to read, helps pave the way for sdev->{id,channel} removal, and adds a token that can easily by grepped-for in the future. There are a couple sdev_id() and scmd_printk() updates thrown in as well. Rejections fixed up and Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:

committed by
James Bottomley

parent
017560fca4
commit
422c0d61d5
@@ -710,7 +710,7 @@ static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
|
||||
|
||||
/* We are locked here already by the mid layer */
|
||||
REG0;
|
||||
outb(SCpnt->device->id, DEST_ID); /* set destination */
|
||||
outb(scmd_id(SCpnt), DEST_ID); /* set destination */
|
||||
outb(FLUSH_FIFO, CMD_REG); /* reset the fifos */
|
||||
|
||||
for (i = 0; i < SCpnt->cmd_len; i++) {
|
||||
|
Reference in New Issue
Block a user