Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: 53c700: Use scsi_cmd_to_rq() instead of scsi_cmnd.request

Prepare for removal of the request pointer by using scsi_cmd_to_rq()
instead. This patch does not change any functionality.

Link: https://lore.kernel.org/r/20210809230355.8186-12-bvanassche@acm.org
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
cd4b46cd d78f31ce

+1 -1
+1 -1
drivers/scsi/53c700.c
··· 1823 1823 1824 1824 if ((hostdata->tag_negotiated & (1<<scmd_id(SCp))) && 1825 1825 SCp->device->simple_tags) { 1826 - slot->tag = SCp->request->tag; 1826 + slot->tag = scsi_cmd_to_rq(SCp)->tag; 1827 1827 CDEBUG(KERN_DEBUG, SCp, "sending out tag %d, slot %p\n", 1828 1828 slot->tag, slot); 1829 1829 } else {