|
@@ -815,16 +815,14 @@ static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
|
|
|
struct tmio_mmc_host *host = mmc_priv(mmc);
|
|
|
int i, ret = 0;
|
|
|
|
|
|
- if (!host->tap_num) {
|
|
|
- if (!host->init_tuning || !host->select_tuning)
|
|
|
- /* Tuning is not supported */
|
|
|
- goto out;
|
|
|
+ if (!host->init_tuning || !host->select_tuning)
|
|
|
+ /* Tuning is not supported */
|
|
|
+ goto out;
|
|
|
|
|
|
- host->tap_num = host->init_tuning(host);
|
|
|
- if (!host->tap_num)
|
|
|
- /* Tuning is not supported */
|
|
|
- goto out;
|
|
|
- }
|
|
|
+ host->tap_num = host->init_tuning(host);
|
|
|
+ if (!host->tap_num)
|
|
|
+ /* Tuning is not supported */
|
|
|
+ goto out;
|
|
|
|
|
|
if (host->tap_num * 2 >= sizeof(host->taps) * BITS_PER_BYTE) {
|
|
|
dev_warn_once(&host->pdev->dev,
|