mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
scsi: xen-scsifront: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007204618.2196847-6-bvanassche@acm.org Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
f11e4da6bf
commit
fd17badb66
@ -276,7 +276,7 @@ static void scsifront_cdb_cmd_done(struct vscsifrnt_info *info,
|
||||
if (sense_len)
|
||||
memcpy(sc->sense_buffer, ring_rsp->sense_buffer, sense_len);
|
||||
|
||||
sc->scsi_done(sc);
|
||||
scsi_done(sc);
|
||||
}
|
||||
|
||||
static void scsifront_sync_cmd_done(struct vscsifrnt_info *info,
|
||||
@ -558,7 +558,7 @@ static int scsifront_queuecommand(struct Scsi_Host *shost,
|
||||
if (err == -ENOMEM)
|
||||
return SCSI_MLQUEUE_HOST_BUSY;
|
||||
sc->result = DID_ERROR << 16;
|
||||
sc->scsi_done(sc);
|
||||
scsi_done(sc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user