|
@@ -820,7 +820,7 @@ fail_request:
|
|
|
static void finalize_request(struct s3cmci_host *host)
|
|
|
{
|
|
|
struct mmc_request *mrq = host->mrq;
|
|
|
- struct mmc_command *cmd = host->cmd_is_stop ? mrq->stop : mrq->cmd;
|
|
|
+ struct mmc_command *cmd;
|
|
|
int debug_as_failure = 0;
|
|
|
|
|
|
if (host->complete_what != COMPLETION_FINALIZE)
|
|
@@ -828,6 +828,7 @@ static void finalize_request(struct s3cmci_host *host)
|
|
|
|
|
|
if (!mrq)
|
|
|
return;
|
|
|
+ cmd = host->cmd_is_stop ? mrq->stop : mrq->cmd;
|
|
|
|
|
|
if (cmd->data && (cmd->error == 0) &&
|
|
|
(cmd->data->error == 0)) {
|