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

Commit b38313d6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Chris Ball
Browse files

mmc: omap_hsmmc: remove a duplicative test



Static checkers complain that testing for both "next" and "!next" is
duplicative.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarBalaji T K <balajitk@ti.com>
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent 370aede6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1236,8 +1236,7 @@ static int omap_hsmmc_pre_dma_transfer(struct omap_hsmmc_host *host,
	}

	/* Check if next job is already prepared */
	if (next ||
	    (!next && data->host_cookie != host->next_data.cookie)) {
	if (next || data->host_cookie != host->next_data.cookie) {
		dma_len = dma_map_sg(chan->device->dev, data->sg, data->sg_len,
				     omap_hsmmc_get_dma_dir(host, data));