Commit c0e70ea3 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: mac53c94: Call scsi_done() directly

Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.

Link: https://lore.kernel.org/r/20211007202923.2174984-48-bvanassche@acm.orgSigned-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ca068c2c
...@@ -83,7 +83,6 @@ static int mac53c94_queue_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cm ...@@ -83,7 +83,6 @@ static int mac53c94_queue_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cm
} }
#endif #endif
cmd->scsi_done = done;
cmd->host_scribble = NULL; cmd->host_scribble = NULL;
state = (struct fsc_state *) cmd->device->host->hostdata; state = (struct fsc_state *) cmd->device->host->hostdata;
...@@ -348,7 +347,7 @@ static void cmd_done(struct fsc_state *state, int result) ...@@ -348,7 +347,7 @@ static void cmd_done(struct fsc_state *state, int result)
cmd = state->current_req; cmd = state->current_req;
if (cmd) { if (cmd) {
cmd->result = result; cmd->result = result;
(*cmd->scsi_done)(cmd); scsi_done(cmd);
state->current_req = NULL; state->current_req = NULL;
} }
state->phase = idle; state->phase = idle;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment