diff options
author | Christian Lütke-Stetzkamp <christian@lkamp.de> | 2018-06-16 16:15:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 21:48:05 +0900 |
commit | 38ee87eaadf593de9e55ec1977c90f24dc39454e (patch) | |
tree | 9eff7be77e7f774cbb9c0bad5d63e4e48e4e29fb /drivers/staging/mt7621-mmc | |
parent | staging: mt7621-mmc: Remove unused macro is_card_present (diff) | |
download | linux-dev-38ee87eaadf593de9e55ec1977c90f24dc39454e.tar.xz linux-dev-38ee87eaadf593de9e55ec1977c90f24dc39454e.zip |
staging: mt7621-mmc: Remove unused argument from msdc_do_command
The argument tune of msdc_do_command is never used, so remove it.
Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-mmc')
-rw-r--r-- | drivers/staging/mt7621-mmc/sd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index cfe7517f8bdf..93f14c9694b9 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -710,7 +710,6 @@ static void msdc_pm(pm_message_t state, void *data) /*--------------------------------------------------------------------------*/ static unsigned int msdc_command_start(struct msdc_host *host, struct mmc_command *cmd, - int tune, /* not used */ unsigned long timeout) { u32 opcode = cmd->opcode; @@ -932,7 +931,7 @@ static unsigned int msdc_do_command(struct msdc_host *host, int tune, unsigned long timeout) { - if (msdc_command_start(host, cmd, tune, timeout)) + if (msdc_command_start(host, cmd, timeout)) goto end; if (msdc_command_resp(host, cmd, tune, timeout)) @@ -1098,7 +1097,7 @@ static int msdc_do_request(struct mmc_host *mmc, struct mmc_request *mrq) init_completion(&host->xfer_done); /* start the command first*/ - if (msdc_command_start(host, cmd, 1, CMD_TIMEOUT) != 0) + if (msdc_command_start(host, cmd, CMD_TIMEOUT) != 0) goto done; data->sg_count = dma_map_sg(mmc_dev(mmc), data->sg, |