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

scsi: remove scsi_get_tag_type

Both remaining users are better of just checking sdev->simple_tags
directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com
Reviewed-by: Hannes Reinecke <hare@suse.de>

+3 -16
+2 -2
drivers/scsi/53c700.c
··· 1816 1816 hostdata->tag_negotiated &= ~(1<<scmd_id(SCp)); 1817 1817 } 1818 1818 1819 - if((hostdata->tag_negotiated &(1<<scmd_id(SCp))) 1820 - && scsi_get_tag_type(SCp->device)) { 1819 + if ((hostdata->tag_negotiated & (1<<scmd_id(SCp))) && 1820 + SCp->device->simple_tags) { 1821 1821 slot->tag = SCp->request->tag; 1822 1822 CDEBUG(KERN_DEBUG, SCp, "sending out tag %d, slot %p\n", 1823 1823 slot->tag, slot);
+1 -1
drivers/scsi/ipr.c
··· 5755 5755 5756 5756 ipr_reinit_ipr_cmnd_for_erp(ipr_cmd); 5757 5757 5758 - if (!scsi_get_tag_type(scsi_cmd->device)) { 5758 + if (!scsi_cmd->device->simple_tags) { 5759 5759 ipr_erp_request_sense(ipr_cmd); 5760 5760 return; 5761 5761 }
-13
include/scsi/scsi_tcq.h
··· 15 15 16 16 17 17 #ifdef CONFIG_BLOCK 18 - /** 19 - * scsi_get_tag_type - get the type of tag the device supports 20 - * @sdev: the scsi device 21 - */ 22 - static inline int scsi_get_tag_type(struct scsi_device *sdev) 23 - { 24 - if (!sdev->tagged_supported) 25 - return 0; 26 - if (sdev->simple_tags) 27 - return MSG_SIMPLE_TAG; 28 - return 0; 29 - } 30 - 31 18 static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag) 32 19 { 33 20 switch (tag) {