mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
scsi: acornscsi: Remove acornscsi_reportstatus()
Unused. Link: https://lore.kernel.org/r/20210427083046.31620-28-hare@suse.de Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
3ff451e929
commit
3c96913145
1 changed files with 0 additions and 25 deletions
|
@ -2506,31 +2506,6 @@ static int acornscsi_queuecmd_lck(struct scsi_cmnd *SCpnt,
|
||||||
|
|
||||||
DEF_SCSI_QCMD(acornscsi_queuecmd)
|
DEF_SCSI_QCMD(acornscsi_queuecmd)
|
||||||
|
|
||||||
/*
|
|
||||||
* Prototype: void acornscsi_reportstatus(struct scsi_cmnd **SCpntp1, struct scsi_cmnd **SCpntp2, int result)
|
|
||||||
* Purpose : pass a result to *SCpntp1, and check if *SCpntp1 = *SCpntp2
|
|
||||||
* Params : SCpntp1 - pointer to command to return
|
|
||||||
* SCpntp2 - pointer to command to check
|
|
||||||
* result - result to pass back to mid-level done function
|
|
||||||
* Returns : *SCpntp2 = NULL if *SCpntp1 is the same command structure as *SCpntp2.
|
|
||||||
*/
|
|
||||||
static inline void acornscsi_reportstatus(struct scsi_cmnd **SCpntp1,
|
|
||||||
struct scsi_cmnd **SCpntp2,
|
|
||||||
int result)
|
|
||||||
{
|
|
||||||
struct scsi_cmnd *SCpnt = *SCpntp1;
|
|
||||||
|
|
||||||
if (SCpnt) {
|
|
||||||
*SCpntp1 = NULL;
|
|
||||||
|
|
||||||
SCpnt->result = result;
|
|
||||||
SCpnt->scsi_done(SCpnt);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (SCpnt == *SCpntp2)
|
|
||||||
*SCpntp2 = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum res_abort { res_not_running, res_success, res_success_clear, res_snooze };
|
enum res_abort { res_not_running, res_success, res_success_clear, res_snooze };
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue