Message ID | 1436169747-28834-2-git-send-email-sagig@mellanox.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Jul 06, 2015 at 11:02:25AM +0300, Sagi Grimberg wrote: > From: Bart Van Assche <bart.vanassche@sandisk.com> > > Inline this function in its call site since it performs a trivial > task and since it is only called once. > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Reviewed-by: Hannes Reinecke <hare@suse.de> Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de> Sagi: if you send on Barts patches you probably should add your signoff as well. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 7/6/2015 11:59 AM, Christoph Hellwig wrote: > On Mon, Jul 06, 2015 at 11:02:25AM +0300, Sagi Grimberg wrote: >> From: Bart Van Assche <bart.vanassche@sandisk.com> >> >> Inline this function in its call site since it performs a trivial >> task and since it is only called once. >> >> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> >> Reviewed-by: Hannes Reinecke <hare@suse.de> > > Looks good, > > Reviewed-by: Christoph Hellwig <hch@lst.de> > > Sagi: if you send on Barts patches you probably should add your signoff > as well. I will. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 1bc8378..e895156 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -2620,17 +2620,6 @@ bool transport_wait_for_tasks(struct se_cmd *cmd) } EXPORT_SYMBOL(transport_wait_for_tasks); -static int transport_get_sense_codes( - struct se_cmd *cmd, - u8 *asc, - u8 *ascq) -{ - *asc = cmd->scsi_asc; - *ascq = cmd->scsi_ascq; - - return 0; -} - static void transport_err_sector_info(unsigned char *buffer, sector_t bad_sector) { @@ -2824,9 +2813,8 @@ transport_send_check_condition_and_sense(struct se_cmd *cmd, buffer[SPC_ADD_SENSE_LEN_OFFSET] = 10; /* Not Ready */ buffer[SPC_SENSE_KEY_OFFSET] = NOT_READY; - transport_get_sense_codes(cmd, &asc, &ascq); - buffer[SPC_ASC_KEY_OFFSET] = asc; - buffer[SPC_ASCQ_KEY_OFFSET] = ascq; + buffer[SPC_ASC_KEY_OFFSET] = cmd->scsi_asc; + buffer[SPC_ASCQ_KEY_OFFSET] = cmd->scsi_ascq; break; case TCM_MISCOMPARE_VERIFY: /* CURRENT ERROR */