Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2e3d4f5 authored by Can Guo's avatar Can Guo
Browse files

mmc: sdhci: remove a redundant code piece



This change removes an identical code piece of allocating bounce buffer for
SDMA.

Change-Id: If8217645e81ee94e2cb2f569637cfce6b8f20186
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 47c9931a
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -4844,13 +4844,6 @@ int sdhci_setup_host(struct sdhci_host *host)
			return ret;
			return ret;
	}
	}


	if (mmc->max_segs == 1) {
		/* This may alter mmc->*_blk_* parameters */
		ret = sdhci_allocate_bounce_buffer(host);
		if (ret)
			return ret;
	}

	return 0;
	return 0;


unreg:
unreg: